home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / sharutil.2 / sharutil / sharutils-4.2 / configure < prev    next >
Encoding:
Text File  |  1995-12-04  |  101.3 KB  |  3,956 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.7 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --disable-uucode        disable installation of uuencode and uudecode"
  16. ac_help="$ac_help
  17.   --disable-nls           do not use Native Language Support"
  18. ac_help="$ac_help
  19.   --with-gnu-gettext      use the GNU gettext library"
  20. ac_help="$ac_help
  21.   --with-dmalloc          use dmalloc, as in dmalloc.tar.gz from
  22.                           @/ftp.antaire.com:antaire/src/dmalloc."
  23.  
  24. # Initialize some variables set by options.
  25. # The variables have the same names as the options, with
  26. # dashes changed to underlines.
  27. build=NONE
  28. cache_file=./config.cache
  29. exec_prefix=NONE
  30. host=NONE
  31. no_create=
  32. nonopt=NONE
  33. no_recursion=
  34. prefix=NONE
  35. program_prefix=NONE
  36. program_suffix=NONE
  37. program_transform_name=s,x,x,
  38. silent=
  39. site=
  40. srcdir=
  41. target=NONE
  42. verbose=
  43. x_includes=NONE
  44. x_libraries=NONE
  45. bindir='${exec_prefix}/bin'
  46. sbindir='${exec_prefix}/sbin'
  47. libexecdir='${exec_prefix}/libexec'
  48. datadir='${prefix}/share'
  49. sysconfdir='${prefix}/etc'
  50. sharedstatedir='${prefix}/com'
  51. localstatedir='${prefix}/var'
  52. libdir='${exec_prefix}/lib'
  53. includedir='${prefix}/include'
  54. oldincludedir='/usr/include'
  55. infodir='${prefix}/info'
  56. mandir='${prefix}/man'
  57.  
  58. # Initialize some other variables.
  59. subdirs=
  60. MFLAGS= MAKEFLAGS=
  61.  
  62. ac_prev=
  63. for ac_option
  64. do
  65.  
  66.   # If the previous option needs an argument, assign it.
  67.   if test -n "$ac_prev"; then
  68.     eval "$ac_prev=\$ac_option"
  69.     ac_prev=
  70.     continue
  71.   fi
  72.  
  73.   case "$ac_option" in
  74.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  75.   *) ac_optarg= ;;
  76.   esac
  77.  
  78.   # Accept the important Cygnus configure options, so we can diagnose typos.
  79.  
  80.   case "$ac_option" in
  81.  
  82.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  83.     ac_prev=bindir ;;
  84.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  85.     bindir="$ac_optarg" ;;
  86.  
  87.   -build | --build | --buil | --bui | --bu)
  88.     ac_prev=build ;;
  89.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  90.     build="$ac_optarg" ;;
  91.  
  92.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  93.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  94.     ac_prev=cache_file ;;
  95.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  96.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  97.     cache_file="$ac_optarg" ;;
  98.  
  99.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  100.     ac_prev=datadir ;;
  101.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  102.   | --da=*)
  103.     datadir="$ac_optarg" ;;
  104.  
  105.   -disable-* | --disable-*)
  106.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  107.     # Reject names that are not valid shell variable names.
  108.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  109.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  110.     fi
  111.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  112.     eval "enable_${ac_feature}=no" ;;
  113.  
  114.   -enable-* | --enable-*)
  115.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  116.     # Reject names that are not valid shell variable names.
  117.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  118.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  119.     fi
  120.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  121.     case "$ac_option" in
  122.       *=*) ;;
  123.       *) ac_optarg=yes ;;
  124.     esac
  125.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  126.  
  127.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  128.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  129.   | --exec | --exe | --ex)
  130.     ac_prev=exec_prefix ;;
  131.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  132.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  133.   | --exec=* | --exe=* | --ex=*)
  134.     exec_prefix="$ac_optarg" ;;
  135.  
  136.   -gas | --gas | --ga | --g)
  137.     # Obsolete; use --with-gas.
  138.     with_gas=yes ;;
  139.  
  140.   -help | --help | --hel | --he)
  141.     # Omit some internal or obsolete options to make the list less imposing.
  142.     # This message is too long to be a string in the A/UX 3.1 sh.
  143.     cat << EOF
  144. Usage: configure [options] [host]
  145. Options: [defaults in brackets after descriptions]
  146. Configuration:
  147.   --cache-file=FILE       cache test results in FILE
  148.   --help                  print this message
  149.   --no-create             do not create output files
  150.   --quiet, --silent       do not print \`checking...' messages
  151.   --version               print the version of autoconf that created configure
  152. Directory and file names:
  153.   --prefix=PREFIX         install architecture-independent files in PREFIX
  154.                           [$ac_default_prefix]
  155.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  156.                           [same as prefix]
  157.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  158.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  159.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  160.   --datadir=DIR           read-only architecture-independent data in DIR
  161.                           [PREFIX/share]
  162.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  163.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  164.                           [PREFIX/com]
  165.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  166.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  167.   --includedir=DIR        C header files in DIR [PREFIX/include]
  168.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  169.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  170.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  171.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  172.   --program-prefix=PREFIX prepend PREFIX to installed program names
  173.   --program-suffix=SUFFIX append SUFFIX to installed program names
  174.   --program-transform-name=PROGRAM
  175.                           run sed PROGRAM on installed program names
  176. EOF
  177.     cat << EOF
  178. Host type:
  179.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  180.   --host=HOST             configure for HOST [guessed]
  181.   --target=TARGET         configure for TARGET [TARGET=HOST]
  182. Features and packages:
  183.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  184.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  185.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  186.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  187.   --x-includes=DIR        X include files are in DIR
  188.   --x-libraries=DIR       X library files are in DIR
  189. EOF
  190.     if test -n "$ac_help"; then
  191.       echo "--enable and --with options recognized:$ac_help"
  192.     fi
  193.     exit 0 ;;
  194.  
  195.   -host | --host | --hos | --ho)
  196.     ac_prev=host ;;
  197.   -host=* | --host=* | --hos=* | --ho=*)
  198.     host="$ac_optarg" ;;
  199.  
  200.   -includedir | --includedir | --includedi | --included | --include \
  201.   | --includ | --inclu | --incl | --inc)
  202.     ac_prev=includedir ;;
  203.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  204.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  205.     includedir="$ac_optarg" ;;
  206.  
  207.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  208.     ac_prev=infodir ;;
  209.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  210.     infodir="$ac_optarg" ;;
  211.  
  212.   -libdir | --libdir | --libdi | --libd)
  213.     ac_prev=libdir ;;
  214.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  215.     libdir="$ac_optarg" ;;
  216.  
  217.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  218.   | --libexe | --libex | --libe)
  219.     ac_prev=libexecdir ;;
  220.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  221.   | --libexe=* | --libex=* | --libe=*)
  222.     libexecdir="$ac_optarg" ;;
  223.  
  224.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  225.   | --localstate | --localstat | --localsta | --localst \
  226.   | --locals | --local | --loca | --loc | --lo)
  227.     ac_prev=localstatedir ;;
  228.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  229.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  230.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  231.     localstatedir="$ac_optarg" ;;
  232.  
  233.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  234.     ac_prev=mandir ;;
  235.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  236.     mandir="$ac_optarg" ;;
  237.  
  238.   -nfp | --nfp | --nf)
  239.     # Obsolete; use --without-fp.
  240.     with_fp=no ;;
  241.  
  242.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  243.   | --no-cr | --no-c)
  244.     no_create=yes ;;
  245.  
  246.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  247.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  248.     no_recursion=yes ;;
  249.  
  250.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  251.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  252.   | --oldin | --oldi | --old | --ol | --o)
  253.     ac_prev=oldincludedir ;;
  254.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  255.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  256.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  257.     oldincludedir="$ac_optarg" ;;
  258.  
  259.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  260.     ac_prev=prefix ;;
  261.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  262.     prefix="$ac_optarg" ;;
  263.  
  264.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  265.   | --program-pre | --program-pr | --program-p)
  266.     ac_prev=program_prefix ;;
  267.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  268.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  269.     program_prefix="$ac_optarg" ;;
  270.  
  271.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  272.   | --program-suf | --program-su | --program-s)
  273.     ac_prev=program_suffix ;;
  274.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  275.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  276.     program_suffix="$ac_optarg" ;;
  277.  
  278.   -program-transform-name | --program-transform-name \
  279.   | --program-transform-nam | --program-transform-na \
  280.   | --program-transform-n | --program-transform- \
  281.   | --program-transform | --program-transfor \
  282.   | --program-transfo | --program-transf \
  283.   | --program-trans | --program-tran \
  284.   | --progr-tra | --program-tr | --program-t)
  285.     ac_prev=program_transform_name ;;
  286.   -program-transform-name=* | --program-transform-name=* \
  287.   | --program-transform-nam=* | --program-transform-na=* \
  288.   | --program-transform-n=* | --program-transform-=* \
  289.   | --program-transform=* | --program-transfor=* \
  290.   | --program-transfo=* | --program-transf=* \
  291.   | --program-trans=* | --program-tran=* \
  292.   | --progr-tra=* | --program-tr=* | --program-t=*)
  293.     program_transform_name="$ac_optarg" ;;
  294.  
  295.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  296.   | -silent | --silent | --silen | --sile | --sil)
  297.     silent=yes ;;
  298.  
  299.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  300.     ac_prev=sbindir ;;
  301.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  302.   | --sbi=* | --sb=*)
  303.     sbindir="$ac_optarg" ;;
  304.  
  305.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  306.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  307.   | --sharedst | --shareds | --shared | --share | --shar \
  308.   | --sha | --sh)
  309.     ac_prev=sharedstatedir ;;
  310.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  311.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  312.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  313.   | --sha=* | --sh=*)
  314.     sharedstatedir="$ac_optarg" ;;
  315.  
  316.   -site | --site | --sit)
  317.     ac_prev=site ;;
  318.   -site=* | --site=* | --sit=*)
  319.     site="$ac_optarg" ;;
  320.  
  321.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  322.     ac_prev=srcdir ;;
  323.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  324.     srcdir="$ac_optarg" ;;
  325.  
  326.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  327.   | --syscon | --sysco | --sysc | --sys | --sy)
  328.     ac_prev=sysconfdir ;;
  329.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  330.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  331.     sysconfdir="$ac_optarg" ;;
  332.  
  333.   -target | --target | --targe | --targ | --tar | --ta | --t)
  334.     ac_prev=target ;;
  335.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  336.     target="$ac_optarg" ;;
  337.  
  338.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  339.     verbose=yes ;;
  340.  
  341.   -version | --version | --versio | --versi | --vers)
  342.     echo "configure generated by autoconf version 2.7"
  343.     exit 0 ;;
  344.  
  345.   -with-* | --with-*)
  346.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  347.     # Reject names that are not valid shell variable names.
  348.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  349.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  350.     fi
  351.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  352.     case "$ac_option" in
  353.       *=*) ;;
  354.       *) ac_optarg=yes ;;
  355.     esac
  356.     eval "with_${ac_package}='$ac_optarg'" ;;
  357.  
  358.   -without-* | --without-*)
  359.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  360.     # Reject names that are not valid shell variable names.
  361.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  362.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  363.     fi
  364.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  365.     eval "with_${ac_package}=no" ;;
  366.  
  367.   --x)
  368.     # Obsolete; use --with-x.
  369.     with_x=yes ;;
  370.  
  371.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  372.   | --x-incl | --x-inc | --x-in | --x-i)
  373.     ac_prev=x_includes ;;
  374.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  375.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  376.     x_includes="$ac_optarg" ;;
  377.  
  378.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  379.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  380.     ac_prev=x_libraries ;;
  381.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  382.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  383.     x_libraries="$ac_optarg" ;;
  384.  
  385.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  386.     ;;
  387.  
  388.   *)
  389.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  390.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  391.     fi
  392.     if test "x$nonopt" != xNONE; then
  393.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  394.     fi
  395.     nonopt="$ac_option"
  396.     ;;
  397.  
  398.   esac
  399. done
  400.  
  401. if test -n "$ac_prev"; then
  402.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  403. fi
  404.  
  405. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  406.  
  407. # File descriptor usage:
  408. # 0 standard input
  409. # 1 file creation
  410. # 2 errors and warnings
  411. # 3 some systems may open it to /dev/tty
  412. # 4 used on the Kubota Titan
  413. # 6 checking for... messages and results
  414. # 5 compiler messages saved in config.log
  415. if test "$silent" = yes; then
  416.   exec 6>/dev/null
  417. else
  418.   exec 6>&1
  419. fi
  420. exec 5>./config.log
  421.  
  422. echo "\
  423. This file contains any messages produced by compilers while
  424. running configure, to aid debugging if configure makes a mistake.
  425. " 1>&5
  426.  
  427. # Strip out --no-create and --no-recursion so they do not pile up.
  428. # Also quote any args containing shell metacharacters.
  429. ac_configure_args=
  430. for ac_arg
  431. do
  432.   case "$ac_arg" in
  433.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  434.   | --no-cr | --no-c) ;;
  435.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  436.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  437.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  438.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  439.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  440.   esac
  441. done
  442.  
  443. # NLS nuisances.
  444. # Only set LANG and LC_ALL to C if already set.
  445. # These must not be set unconditionally because not all systems understand
  446. # e.g. LANG=C (notably SCO).
  447. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  448. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  449.  
  450. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  451. rm -rf conftest* confdefs.h
  452. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  453. echo > confdefs.h
  454.  
  455. # A filename unique to this package, relative to the directory that
  456. # configure is in, which we can look for to find out if srcdir is correct.
  457. ac_unique_file=src/shar.c
  458.  
  459. # Find the source files, if location was not specified.
  460. if test -z "$srcdir"; then
  461.   ac_srcdir_defaulted=yes
  462.   # Try the directory containing this script, then its parent.
  463.   ac_prog=$0
  464.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  465.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  466.   srcdir=$ac_confdir
  467.   if test ! -r $srcdir/$ac_unique_file; then
  468.     srcdir=..
  469.   fi
  470. else
  471.   ac_srcdir_defaulted=no
  472. fi
  473. if test ! -r $srcdir/$ac_unique_file; then
  474.   if test "$ac_srcdir_defaulted" = yes; then
  475.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  476.   else
  477.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  478.   fi
  479. fi
  480. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  481.  
  482. # Prefer explicitly selected file to automatically selected ones.
  483. if test -z "$CONFIG_SITE"; then
  484.   if test "x$prefix" != xNONE; then
  485.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  486.   else
  487.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  488.   fi
  489. fi
  490. for ac_site_file in $CONFIG_SITE; do
  491.   if test -r "$ac_site_file"; then
  492.     echo "loading site script $ac_site_file"
  493.     . "$ac_site_file"
  494.   fi
  495. done
  496.  
  497. if test -r "$cache_file"; then
  498.   echo "loading cache $cache_file"
  499.   . $cache_file
  500. else
  501.   echo "creating cache $cache_file"
  502.   > $cache_file
  503. fi
  504.  
  505. ac_ext=c
  506. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  507. ac_cpp='echo $CPP $CPPFLAGS 1>&5;
  508. $CPP $CPPFLAGS'
  509. ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
  510. ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  511. ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
  512. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  513.  
  514. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  515.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  516.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  517.     ac_n= ac_c='
  518. ' ac_t='    '
  519.   else
  520.     ac_n=-n ac_c= ac_t=
  521.   fi
  522. else
  523.   ac_n= ac_c='\c' ac_t=
  524. fi
  525.  
  526.  
  527.  
  528. if test "$program_transform_name" = s,x,x,; then
  529.   program_transform_name=
  530. else
  531.   # Double any \ or $.  echo might interpret backslashes.
  532.   cat <<\EOF_SED > conftestsed
  533. s,\\,\\\\,g; s,\$,$$,g
  534. EOF_SED
  535.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  536.   rm -f conftestsed
  537. fi
  538. test "$program_prefix" != NONE &&
  539.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  540. # Use a double $ so make ignores it.
  541. test "$program_suffix" != NONE &&
  542.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  543.  
  544. # sed with no file args requires a program.
  545. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  546.  
  547.  
  548. PACKAGE=sharutils
  549. VERSION=4.2
  550. ALL_LINGUAS="de fr ja_JP.EUC nl pt sv"
  551. PROGRAMS="shar unshar"
  552. SCRIPTS="mail-files mailshar"
  553. MAN1PAGES="shar unshar"
  554. MAN5PAGES=
  555. cat >> confdefs.h <<EOF
  556. #define PACKAGE "$PACKAGE"
  557. EOF
  558.  
  559. cat >> confdefs.h <<EOF
  560. #define VERSION "$VERSION"
  561. EOF
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570. case $VERSION in
  571.   [0-9]*.[0-9]*.[0-9]*) DIST_ALPHA="README-alpha";;
  572.   *) DIST_ALPHA=;;
  573. esac
  574.  
  575.  
  576. # Extract the first word of "gcc", so it can be a program name with args.
  577. set dummy gcc; ac_word=$2
  578. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  579. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  580.   echo $ac_n "(cached) $ac_c" 1>&6
  581. else
  582.   if test -n "$CC"; then
  583.   ac_cv_prog_CC="$CC" # Let the user override the test.
  584. else
  585.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  586.   for ac_dir in $PATH; do
  587.     test -z "$ac_dir" && ac_dir=.
  588.     if test -f $ac_dir/$ac_word; then
  589.       ac_cv_prog_CC="gcc"
  590.       break
  591.     fi
  592.   done
  593.   IFS="$ac_save_ifs"
  594.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  595. fi
  596. fi
  597. CC="$ac_cv_prog_CC"
  598. if test -n "$CC"; then
  599.   echo "$ac_t""$CC" 1>&6
  600. else
  601.   echo "$ac_t""no" 1>&6
  602. fi
  603.  
  604.  
  605. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  606. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  607.   echo $ac_n "(cached) $ac_c" 1>&6
  608. else
  609.   cat > conftest.c <<EOF
  610. #ifdef __GNUC__
  611.   yes;
  612. #endif
  613. EOF
  614. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  615.   ac_cv_prog_gcc=yes
  616. else
  617.   ac_cv_prog_gcc=no
  618. fi
  619. fi
  620.  
  621. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  622. if test $ac_cv_prog_gcc = yes; then
  623.   GCC=yes
  624.   if test "${CFLAGS+set}" != set; then
  625.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  626. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  627.   echo $ac_n "(cached) $ac_c" 1>&6
  628. else
  629.   echo 'void f(){}' > conftest.c
  630. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  631.   ac_cv_prog_gcc_g=yes
  632. else
  633.   ac_cv_prog_gcc_g=no
  634. fi
  635. rm -f conftest*
  636.  
  637. fi
  638.  
  639. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  640.     if test $ac_cv_prog_gcc_g = yes; then
  641.       CFLAGS="-g -O"
  642.     else
  643.       CFLAGS="-O"
  644.     fi
  645.   fi
  646. else
  647.   GCC=
  648.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  649. fi
  650.  
  651. ac_aux_dir=
  652. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  653.   if test -f $ac_dir/install-sh; then
  654.     ac_aux_dir=$ac_dir
  655.     ac_install_sh="$ac_aux_dir/install-sh -c"
  656.     break
  657.   elif test -f $ac_dir/install.sh; then
  658.     ac_aux_dir=$ac_dir
  659.     ac_install_sh="$ac_aux_dir/install.sh -c"
  660.     break
  661.   fi
  662. done
  663. if test -z "$ac_aux_dir"; then
  664.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  665. fi
  666. ac_config_guess=$ac_aux_dir/config.guess
  667. ac_config_sub=$ac_aux_dir/config.sub
  668. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  669.  
  670. # Find a good install program.  We prefer a C program (faster),
  671. # so one script is as good as another.  But avoid the broken or
  672. # incompatible versions:
  673. # SysV /etc/install, /usr/sbin/install
  674. # SunOS /usr/etc/install
  675. # IRIX /sbin/install
  676. # AIX /bin/install
  677. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  678. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  679. # ./install, which can be erroneously created by make from ./install.sh.
  680. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  681. if test -z "$INSTALL"; then
  682. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  683.   echo $ac_n "(cached) $ac_c" 1>&6
  684. else
  685.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  686.   for ac_dir in $PATH; do
  687.     # Account for people who put trailing slashes in PATH elements.
  688.     case "$ac_dir/" in
  689.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  690.     *)
  691.       # OSF1 and SCO ODT 3.0 have their own names for install.
  692.       for ac_prog in ginstall installbsd scoinst install; do
  693.         if test -f $ac_dir/$ac_prog; then
  694.       if test $ac_prog = install &&
  695.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  696.         # AIX install.  It has an incompatible calling convention.
  697.         # OSF/1 installbsd also uses dspmsg, but is usable.
  698.         :
  699.       else
  700.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  701.         break 2
  702.       fi
  703.     fi
  704.       done
  705.       ;;
  706.     esac
  707.   done
  708.   IFS="$ac_save_ifs"
  709.  
  710. fi
  711.   if test "${ac_cv_path_install+set}" = set; then
  712.     INSTALL="$ac_cv_path_install"
  713.   else
  714.     # As a last resort, use the slow shell script.  We don't cache a
  715.     # path for INSTALL within a source directory, because that will
  716.     # break other packages using the cache if that directory is
  717.     # removed, or if the path is relative.
  718.     INSTALL="$ac_install_sh"
  719.   fi
  720. fi
  721. echo "$ac_t""$INSTALL" 1>&6
  722.  
  723. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  724. # It thinks the first close brace ends the variable substitution.
  725. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  726.  
  727. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  728.  
  729. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL} -m 755'
  730.  
  731. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  732. set dummy ${MAKE-make}; ac_make=$2
  733. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  734.   echo $ac_n "(cached) $ac_c" 1>&6
  735. else
  736.   cat > conftestmake <<\EOF
  737. all:
  738.     @echo 'ac_maketemp="${MAKE}"'
  739. EOF
  740. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  741. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  742. if test -n "$ac_maketemp"; then
  743.   eval ac_cv_prog_make_${ac_make}_set=yes
  744. else
  745.   eval ac_cv_prog_make_${ac_make}_set=no
  746. fi
  747. rm -f conftestmake
  748. fi
  749. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  750.   echo "$ac_t""yes" 1>&6
  751.   SET_MAKE=
  752. else
  753.   echo "$ac_t""no" 1>&6
  754.   SET_MAKE="MAKE=${MAKE-make}"
  755. fi
  756.  
  757. # Extract the first word of "ranlib", so it can be a program name with args.
  758. set dummy ranlib; ac_word=$2
  759. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  760. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  761.   echo $ac_n "(cached) $ac_c" 1>&6
  762. else
  763.   if test -n "$RANLIB"; then
  764.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  765. else
  766.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  767.   for ac_dir in $PATH; do
  768.     test -z "$ac_dir" && ac_dir=.
  769.     if test -f $ac_dir/$ac_word; then
  770.       ac_cv_prog_RANLIB="ranlib"
  771.       break
  772.     fi
  773.   done
  774.   IFS="$ac_save_ifs"
  775.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  776. fi
  777. fi
  778. RANLIB="$ac_cv_prog_RANLIB"
  779. if test -n "$RANLIB"; then
  780.   echo "$ac_t""$RANLIB" 1>&6
  781. else
  782.   echo "$ac_t""no" 1>&6
  783. fi
  784.  
  785.  
  786. # Carefully avoid gdiff for X as found on SGI systems.
  787. if (DISPLAY= gdiff /dev/null /dev/null) 2> /dev/null; then
  788.   for ac_prog in gnudiff diffgnu gdiff diff
  789. do
  790. # Extract the first word of "$ac_prog", so it can be a program name with args.
  791. set dummy $ac_prog; ac_word=$2
  792. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  793. if eval "test \"`echo '$''{'ac_cv_path_DIFF'+set}'`\" = set"; then
  794.   echo $ac_n "(cached) $ac_c" 1>&6
  795. else
  796.   case "$DIFF" in
  797.   /*)
  798.   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
  799.   ;;
  800.   *)
  801.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  802.   for ac_dir in $PATH; do
  803.     test -z "$ac_dir" && ac_dir=.
  804.     if test -f $ac_dir/$ac_word; then
  805.       ac_cv_path_DIFF="$ac_dir/$ac_word"
  806.       break
  807.     fi
  808.   done
  809.   IFS="$ac_save_ifs"
  810.   ;;
  811. esac
  812. fi
  813. DIFF="$ac_cv_path_DIFF"
  814. if test -n "$DIFF"; then
  815.   echo "$ac_t""$DIFF" 1>&6
  816. else
  817.   echo "$ac_t""no" 1>&6
  818. fi
  819.  
  820. test -n "$DIFF" && break
  821. done
  822. test -n "$DIFF" || DIFF="no"
  823.  
  824. else
  825.   for ac_prog in gnudiff diffgnu diff
  826. do
  827. # Extract the first word of "$ac_prog", so it can be a program name with args.
  828. set dummy $ac_prog; ac_word=$2
  829. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  830. if eval "test \"`echo '$''{'ac_cv_path_DIFF'+set}'`\" = set"; then
  831.   echo $ac_n "(cached) $ac_c" 1>&6
  832. else
  833.   case "$DIFF" in
  834.   /*)
  835.   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
  836.   ;;
  837.   *)
  838.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  839.   for ac_dir in $PATH; do
  840.     test -z "$ac_dir" && ac_dir=.
  841.     if test -f $ac_dir/$ac_word; then
  842.       ac_cv_path_DIFF="$ac_dir/$ac_word"
  843.       break
  844.     fi
  845.   done
  846.   IFS="$ac_save_ifs"
  847.   ;;
  848. esac
  849. fi
  850. DIFF="$ac_cv_path_DIFF"
  851. if test -n "$DIFF"; then
  852.   echo "$ac_t""$DIFF" 1>&6
  853. else
  854.   echo "$ac_t""no" 1>&6
  855. fi
  856.  
  857. test -n "$DIFF" && break
  858. done
  859. test -n "$DIFF" || DIFF="no"
  860.  
  861. fi
  862.  
  863. PATH_save="$PATH"; PATH="$PATH:/usr/sbin:/usr/ucb:/usr/bin:/bin"
  864. for ac_prog in Mail mailx elm mush mail
  865. do
  866. # Extract the first word of "$ac_prog", so it can be a program name with args.
  867. set dummy $ac_prog; ac_word=$2
  868. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  869. if eval "test \"`echo '$''{'ac_cv_path_MAILER'+set}'`\" = set"; then
  870.   echo $ac_n "(cached) $ac_c" 1>&6
  871. else
  872.   case "$MAILER" in
  873.   /*)
  874.   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
  875.   ;;
  876.   *)
  877.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  878.   for ac_dir in $PATH; do
  879.     test -z "$ac_dir" && ac_dir=.
  880.     if test -f $ac_dir/$ac_word; then
  881.       ac_cv_path_MAILER="$ac_dir/$ac_word"
  882.       break
  883.     fi
  884.   done
  885.   IFS="$ac_save_ifs"
  886.   ;;
  887. esac
  888. fi
  889. MAILER="$ac_cv_path_MAILER"
  890. if test -n "$MAILER"; then
  891.   echo "$ac_t""$MAILER" 1>&6
  892. else
  893.   echo "$ac_t""no" 1>&6
  894. fi
  895.  
  896. test -n "$MAILER" && break
  897. done
  898. test -n "$MAILER" || MAILER="no"
  899.  
  900. PATH="$PATH_save"
  901.  
  902. # Extract the first word of "perl", so it can be a program name with args.
  903. set dummy perl; ac_word=$2
  904. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  905. if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
  906.   echo $ac_n "(cached) $ac_c" 1>&6
  907. else
  908.   case "$PERL" in
  909.   /*)
  910.   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  911.   ;;
  912.   *)
  913.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  914.   for ac_dir in $PATH; do
  915.     test -z "$ac_dir" && ac_dir=.
  916.     if test -f $ac_dir/$ac_word; then
  917.       ac_cv_path_PERL="$ac_dir/$ac_word"
  918.       break
  919.     fi
  920.   done
  921.   IFS="$ac_save_ifs"
  922.   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  923.   ;;
  924. esac
  925. fi
  926. PERL="$ac_cv_path_PERL"
  927. if test -n "$PERL"; then
  928.   echo "$ac_t""$PERL" 1>&6
  929. else
  930.   echo "$ac_t""no" 1>&6
  931. fi
  932.  
  933.  
  934. for ac_prog in bash sh
  935. do
  936. # Extract the first word of "$ac_prog", so it can be a program name with args.
  937. set dummy $ac_prog; ac_word=$2
  938. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  939. if eval "test \"`echo '$''{'ac_cv_path_SH'+set}'`\" = set"; then
  940.   echo $ac_n "(cached) $ac_c" 1>&6
  941. else
  942.   case "$SH" in
  943.   /*)
  944.   ac_cv_path_SH="$SH" # Let the user override the test with a path.
  945.   ;;
  946.   *)
  947.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  948.   for ac_dir in $PATH; do
  949.     test -z "$ac_dir" && ac_dir=.
  950.     if test -f $ac_dir/$ac_word; then
  951.       ac_cv_path_SH="$ac_dir/$ac_word"
  952.       break
  953.     fi
  954.   done
  955.   IFS="$ac_save_ifs"
  956.   ;;
  957. esac
  958. fi
  959. SH="$ac_cv_path_SH"
  960. if test -n "$SH"; then
  961.   echo "$ac_t""$SH" 1>&6
  962. else
  963.   echo "$ac_t""no" 1>&6
  964. fi
  965.  
  966. test -n "$SH" && break
  967. done
  968. test -n "$SH" || SH="no"
  969.  
  970.  
  971. for ac_prog in gnutar targnu gtar tar
  972. do
  973. # Extract the first word of "$ac_prog", so it can be a program name with args.
  974. set dummy $ac_prog; ac_word=$2
  975. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  976. if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
  977.   echo $ac_n "(cached) $ac_c" 1>&6
  978. else
  979.   case "$TAR" in
  980.   /*)
  981.   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
  982.   ;;
  983.   *)
  984.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  985.   for ac_dir in $PATH; do
  986.     test -z "$ac_dir" && ac_dir=.
  987.     if test -f $ac_dir/$ac_word; then
  988.       ac_cv_path_TAR="$ac_dir/$ac_word"
  989.       break
  990.     fi
  991.   done
  992.   IFS="$ac_save_ifs"
  993.   ;;
  994. esac
  995. fi
  996. TAR="$ac_cv_path_TAR"
  997. if test -n "$TAR"; then
  998.   echo "$ac_t""$TAR" 1>&6
  999. else
  1000.   echo "$ac_t""no" 1>&6
  1001. fi
  1002.  
  1003. test -n "$TAR" && break
  1004. done
  1005. test -n "$TAR" || TAR="tar"
  1006.  
  1007.  
  1008. test $ac_cv_path_PERL = no || SCRIPTS="$SCRIPTS remsync"
  1009.  
  1010. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1011. # On Suns, sometimes $CPP names a directory.
  1012. if test -n "$CPP" && test -d "$CPP"; then
  1013.   CPP=
  1014. fi
  1015. if test -z "$CPP"; then
  1016. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1017.   echo $ac_n "(cached) $ac_c" 1>&6
  1018. else
  1019.     # This must be in double quotes, not single quotes, because CPP may get
  1020.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1021.   CPP="${CC-cc} -E"
  1022.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1023.   # not just through cpp.
  1024.   cat > conftest.$ac_ext <<EOF
  1025. #line 1026 "configure"
  1026. #include "confdefs.h"
  1027. #include <assert.h>
  1028. Syntax Error
  1029. EOF
  1030. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1031. ac_err=`grep -v '^ *+' conftest.out`
  1032. if test -z "$ac_err"; then
  1033.   :
  1034. else
  1035.   echo "$ac_err" >&5
  1036.   rm -rf conftest*
  1037.   CPP="${CC-cc} -E -traditional-cpp"
  1038.   cat > conftest.$ac_ext <<EOF
  1039. #line 1040 "configure"
  1040. #include "confdefs.h"
  1041. #include <assert.h>
  1042. Syntax Error
  1043. EOF
  1044. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1045. ac_err=`grep -v '^ *+' conftest.out`
  1046. if test -z "$ac_err"; then
  1047.   :
  1048. else
  1049.   echo "$ac_err" >&5
  1050.   rm -rf conftest*
  1051.   CPP=/lib/cpp
  1052. fi
  1053. rm -f conftest*
  1054. fi
  1055. rm -f conftest*
  1056.   ac_cv_prog_CPP="$CPP"
  1057. fi
  1058.   CPP="$ac_cv_prog_CPP"
  1059. else
  1060.   ac_cv_prog_CPP="$CPP"
  1061. fi
  1062. echo "$ac_t""$CPP" 1>&6
  1063.  
  1064. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  1065. cat > conftest.$ac_ext <<EOF
  1066. #line 1067 "configure"
  1067. #include "confdefs.h"
  1068. #ifdef _AIX
  1069.   yes
  1070. #endif
  1071.  
  1072. EOF
  1073. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1074.   egrep "yes" >/dev/null 2>&1; then
  1075.   rm -rf conftest*
  1076.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1077. #define _ALL_SOURCE 1
  1078. EOF
  1079.  
  1080. else
  1081.   rm -rf conftest*
  1082.   echo "$ac_t""no" 1>&6
  1083. fi
  1084. rm -f conftest*
  1085.  
  1086.  
  1087. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1088. if test -d /etc/conf/kconfig.d &&
  1089.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1090. then
  1091.   echo "$ac_t""yes" 1>&6
  1092.   ISC=yes # If later tests want to check for ISC.
  1093.   cat >> confdefs.h <<\EOF
  1094. #define _POSIX_SOURCE 1
  1095. EOF
  1096.  
  1097.   if test "$GCC" = yes; then
  1098.     CC="$CC -posix"
  1099.   else
  1100.     CC="$CC -Xp"
  1101.   fi
  1102. else
  1103.   echo "$ac_t""no" 1>&6
  1104.   ISC=
  1105. fi
  1106.  
  1107. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  1108. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  1109. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1110.   echo $ac_n "(cached) $ac_c" 1>&6
  1111. else
  1112.   cat > conftest.$ac_ext <<EOF
  1113. #line 1114 "configure"
  1114. #include "confdefs.h"
  1115. #include <minix/config.h>
  1116. EOF
  1117. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1118. ac_err=`grep -v '^ *+' conftest.out`
  1119. if test -z "$ac_err"; then
  1120.   rm -rf conftest*
  1121.   eval "ac_cv_header_$ac_safe=yes"
  1122. else
  1123.   echo "$ac_err" >&5
  1124.   rm -rf conftest*
  1125.   eval "ac_cv_header_$ac_safe=no"
  1126. fi
  1127. rm -f conftest*
  1128. fi
  1129. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1130.   echo "$ac_t""yes" 1>&6
  1131.   MINIX=yes
  1132. else
  1133.   echo "$ac_t""no" 1>&6
  1134. MINIX=
  1135. fi
  1136.  
  1137. if test "$MINIX" = yes; then
  1138.   cat >> confdefs.h <<\EOF
  1139. #define _POSIX_SOURCE 1
  1140. EOF
  1141.  
  1142.   cat >> confdefs.h <<\EOF
  1143. #define _POSIX_1_SOURCE 2
  1144. EOF
  1145.  
  1146.   cat >> confdefs.h <<\EOF
  1147. #define _MINIX 1
  1148. EOF
  1149.  
  1150. fi
  1151.  
  1152. # If we cannot run a trivial program, we must be cross compiling.
  1153. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1154. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1155.   echo $ac_n "(cached) $ac_c" 1>&6
  1156. else
  1157.   if test "$cross_compiling" = yes; then
  1158.   ac_cv_c_cross=yes
  1159. else
  1160. cat > conftest.$ac_ext <<EOF
  1161. #line 1162 "configure"
  1162. #include "confdefs.h"
  1163. main(){return(0);}
  1164. EOF
  1165. eval $ac_link
  1166. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1167.   ac_cv_c_cross=no
  1168. else
  1169.   ac_cv_c_cross=yes
  1170. fi
  1171. fi
  1172. rm -fr conftest*
  1173. fi
  1174.  
  1175. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1176. cross_compiling=$ac_cv_c_cross
  1177.  
  1178. if test $cross_compiling = no; then
  1179.   echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
  1180. if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  1181.   echo $ac_n "(cached) $ac_c" 1>&6
  1182. else
  1183.   if test "$GCC" = yes; then
  1184.   # GCC predefines this symbol on systems where it applies.
  1185. cat > conftest.$ac_ext <<EOF
  1186. #line 1187 "configure"
  1187. #include "confdefs.h"
  1188. #ifdef __CHAR_UNSIGNED__
  1189.   yes
  1190. #endif
  1191.  
  1192. EOF
  1193. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1194.   egrep "yes" >/dev/null 2>&1; then
  1195.   rm -rf conftest*
  1196.   ac_cv_c_char_unsigned=yes
  1197. else
  1198.   rm -rf conftest*
  1199.   ac_cv_c_char_unsigned=no
  1200. fi
  1201. rm -f conftest*
  1202.  
  1203. else
  1204. if test "$cross_compiling" = yes; then
  1205.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1206. else
  1207. cat > conftest.$ac_ext <<EOF
  1208. #line 1209 "configure"
  1209. #include "confdefs.h"
  1210. /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  1211. #if !defined(__STDC__) || __STDC__ != 1
  1212. #define volatile
  1213. #endif
  1214. main() {
  1215.   volatile char c = 255; exit(c < 0);
  1216. }
  1217. EOF
  1218. eval $ac_link
  1219. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1220.   ac_cv_c_char_unsigned=yes
  1221. else
  1222.   ac_cv_c_char_unsigned=no
  1223. fi
  1224. fi
  1225. rm -fr conftest*
  1226. fi
  1227. fi
  1228.  
  1229. echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
  1230. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  1231.   cat >> confdefs.h <<\EOF
  1232. #define __CHAR_UNSIGNED__ 1
  1233. EOF
  1234.  
  1235. fi
  1236.  
  1237. fi
  1238. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  1239. if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  1240.   echo $ac_n "(cached) $ac_c" 1>&6
  1241. else
  1242.   ac_cv_prog_cc_stdc=no
  1243. ac_save_CFLAGS="$CFLAGS"
  1244. # Don't try gcc -ansi; that turns off useful extensions and
  1245. # breaks some systems' header files.
  1246. # AIX            -qlanglvl=ansi
  1247. # Ultrix and OSF/1    -std1
  1248. # HP-UX            -Aa -D_HPUX_SOURCE
  1249. # SVR4            -Xc
  1250. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
  1251. do
  1252.   CFLAGS="$ac_save_CFLAGS $ac_arg"
  1253.   cat > conftest.$ac_ext <<EOF
  1254. #line 1255 "configure"
  1255. #include "confdefs.h"
  1256. #if !defined(__STDC__) || __STDC__ != 1
  1257. choke me
  1258. #endif
  1259.  
  1260. int main() { return 0; }
  1261. int t() {
  1262. int test (int i, double x);
  1263. struct s1 {int (*f) (int a);};
  1264. struct s2 {int (*f) (double a);};
  1265. ; return 0; }
  1266. EOF
  1267. if eval $ac_compile; then
  1268.   rm -rf conftest*
  1269.   ac_cv_prog_cc_stdc="$ac_arg"; break
  1270. fi
  1271. rm -f conftest*
  1272.  
  1273. done
  1274. CFLAGS="$ac_save_CFLAGS"
  1275.  
  1276. fi
  1277.  
  1278. echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
  1279. case "x$ac_cv_prog_cc_stdc" in
  1280.   x|xno) ;;
  1281.   *) CC="$CC $ac_cv_prog_cc_stdc" ;;
  1282. esac
  1283.  
  1284.  
  1285. echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
  1286. if test "$ac_cv_prog_cc_stdc" != no; then
  1287.   echo "$ac_t""yes" 1>&6
  1288.   cat >> confdefs.h <<\EOF
  1289. #define PROTOTYPES 1
  1290. EOF
  1291.  
  1292.   U= ANSI2KNR=
  1293. else
  1294.   echo "$ac_t""no" 1>&6
  1295.   U=_ ANSI2KNR=ansi2knr
  1296. fi
  1297.  
  1298. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1299. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1300.   echo $ac_n "(cached) $ac_c" 1>&6
  1301. else
  1302.   cat > conftest.$ac_ext <<EOF
  1303. #line 1304 "configure"
  1304. #include "confdefs.h"
  1305.  
  1306. int main() { return 0; }
  1307. int t() {
  1308.  
  1309. /* Ultrix mips cc rejects this.  */
  1310. typedef int charset[2]; const charset x;
  1311. /* SunOS 4.1.1 cc rejects this.  */
  1312. char const *const *ccp;
  1313. char **p;
  1314. /* NEC SVR4.0.2 mips cc rejects this.  */
  1315. struct point {int x, y;};
  1316. static struct point const zero = {0,0};
  1317. /* AIX XL C 1.02.0.0 rejects this.
  1318.    It does not let you subtract one const X* pointer from another in an arm
  1319.    of an if-expression whose if-part is not a constant expression */
  1320. const char *g = "string";
  1321. ccp = &g + (g ? g-g : 0);
  1322. /* HPUX 7.0 cc rejects these. */
  1323. ++ccp;
  1324. p = (char**) ccp;
  1325. ccp = (char const *const *) p;
  1326. { /* SCO 3.2v4 cc rejects this.  */
  1327.   char *t;
  1328.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1329.  
  1330.   *t++ = 0;
  1331. }
  1332. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1333.   int x[] = {25, 17};
  1334.   const int *foo = &x[0];
  1335.   ++foo;
  1336. }
  1337. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1338.   typedef const int *iptr;
  1339.   iptr p = 0;
  1340.   ++p;
  1341. }
  1342. { /* AIX XL C 1.02.0.0 rejects this saying
  1343.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1344.   struct s { int j; const int *ap[3]; };
  1345.   struct s *b; b->j = 5;
  1346. }
  1347. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1348.   const int foo = 10;
  1349. }
  1350.  
  1351. ; return 0; }
  1352. EOF
  1353. if eval $ac_compile; then
  1354.   rm -rf conftest*
  1355.   ac_cv_c_const=yes
  1356. else
  1357.   rm -rf conftest*
  1358.   ac_cv_c_const=no
  1359. fi
  1360. rm -f conftest*
  1361.  
  1362. fi
  1363.  
  1364. echo "$ac_t""$ac_cv_c_const" 1>&6
  1365. if test $ac_cv_c_const = no; then
  1366.   cat >> confdefs.h <<\EOF
  1367. #define const 
  1368. EOF
  1369.  
  1370. fi
  1371.  
  1372. echo $ac_n "checking for inline""... $ac_c" 1>&6
  1373. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  1374.   echo $ac_n "(cached) $ac_c" 1>&6
  1375. else
  1376.   ac_cv_c_inline=no
  1377. for ac_kw in inline __inline__ __inline; do
  1378.   cat > conftest.$ac_ext <<EOF
  1379. #line 1380 "configure"
  1380. #include "confdefs.h"
  1381.  
  1382. int main() { return 0; }
  1383. int t() {
  1384. } $ac_kw foo() {
  1385. ; return 0; }
  1386. EOF
  1387. if eval $ac_compile; then
  1388.   rm -rf conftest*
  1389.   ac_cv_c_inline=$ac_kw; break
  1390. fi
  1391. rm -f conftest*
  1392.  
  1393. done
  1394.  
  1395. fi
  1396.  
  1397. echo "$ac_t""$ac_cv_c_inline" 1>&6
  1398. case "$ac_cv_c_inline" in
  1399.   inline | yes) ;;
  1400.   no) cat >> confdefs.h <<\EOF
  1401. #define inline 
  1402. EOF
  1403.  ;;
  1404.   *)  cat >> confdefs.h <<EOF
  1405. #define inline $ac_cv_c_inline
  1406. EOF
  1407.  ;;
  1408. esac
  1409.  
  1410. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  1411. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  1412.   echo $ac_n "(cached) $ac_c" 1>&6
  1413. else
  1414.   ac_cv_c_bigendian=unknown
  1415. # See if sys/param.h defines the BYTE_ORDER macro.
  1416. cat > conftest.$ac_ext <<EOF
  1417. #line 1418 "configure"
  1418. #include "confdefs.h"
  1419. #include <sys/types.h>
  1420. #include <sys/param.h>
  1421. int main() { return 0; }
  1422. int t() {
  1423.  
  1424. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  1425.  bogus endian macros
  1426. #endif
  1427. ; return 0; }
  1428. EOF
  1429. if eval $ac_compile; then
  1430.   rm -rf conftest*
  1431.   # It does; now see whether it defined to BIG_ENDIAN or not.
  1432. cat > conftest.$ac_ext <<EOF
  1433. #line 1434 "configure"
  1434. #include "confdefs.h"
  1435. #include <sys/types.h>
  1436. #include <sys/param.h>
  1437. int main() { return 0; }
  1438. int t() {
  1439.  
  1440. #if BYTE_ORDER != BIG_ENDIAN
  1441.  not big endian
  1442. #endif
  1443. ; return 0; }
  1444. EOF
  1445. if eval $ac_compile; then
  1446.   rm -rf conftest*
  1447.   ac_cv_c_bigendian=yes
  1448. else
  1449.   rm -rf conftest*
  1450.   ac_cv_c_bigendian=no
  1451. fi
  1452. rm -f conftest*
  1453.  
  1454. fi
  1455. rm -f conftest*
  1456.  
  1457. if test $ac_cv_c_bigendian = unknown; then
  1458. if test "$cross_compiling" = yes; then
  1459.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1460. else
  1461. cat > conftest.$ac_ext <<EOF
  1462. #line 1463 "configure"
  1463. #include "confdefs.h"
  1464. main () {
  1465.   /* Are we little or big endian?  From Harbison&Steele.  */
  1466.   union
  1467.   {
  1468.     long l;
  1469.     char c[sizeof (long)];
  1470.   } u;
  1471.   u.l = 1;
  1472.   exit (u.c[sizeof (long) - 1] == 1);
  1473. }
  1474. EOF
  1475. eval $ac_link
  1476. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1477.   ac_cv_c_bigendian=no
  1478. else
  1479.   ac_cv_c_bigendian=yes
  1480. fi
  1481. fi
  1482. rm -fr conftest*
  1483. fi
  1484. fi
  1485.  
  1486. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  1487. if test $ac_cv_c_bigendian = yes; then
  1488.   cat >> confdefs.h <<\EOF
  1489. #define WORDS_BIGENDIAN 1
  1490. EOF
  1491.  
  1492. fi
  1493.  
  1494.  
  1495. for ac_hdr in limits.h locale.h memory.h string.h sys/wait.h unistd.h
  1496. do
  1497. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1498. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1499. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1500.   echo $ac_n "(cached) $ac_c" 1>&6
  1501. else
  1502.   cat > conftest.$ac_ext <<EOF
  1503. #line 1504 "configure"
  1504. #include "confdefs.h"
  1505. #include <$ac_hdr>
  1506. EOF
  1507. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1508. ac_err=`grep -v '^ *+' conftest.out`
  1509. if test -z "$ac_err"; then
  1510.   rm -rf conftest*
  1511.   eval "ac_cv_header_$ac_safe=yes"
  1512. else
  1513.   echo "$ac_err" >&5
  1514.   rm -rf conftest*
  1515.   eval "ac_cv_header_$ac_safe=no"
  1516. fi
  1517. rm -f conftest*
  1518. fi
  1519. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1520.   echo "$ac_t""yes" 1>&6
  1521.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1522.   cat >> confdefs.h <<EOF
  1523. #define $ac_tr_hdr 1
  1524. EOF
  1525.  
  1526. else
  1527.   echo "$ac_t""no" 1>&6
  1528. fi
  1529. done
  1530.  
  1531. ac_header_dirent=no
  1532. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1533. do
  1534. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1535. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1536. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1537.   echo $ac_n "(cached) $ac_c" 1>&6
  1538. else
  1539.   cat > conftest.$ac_ext <<EOF
  1540. #line 1541 "configure"
  1541. #include "confdefs.h"
  1542. #include <sys/types.h>
  1543. #include <$ac_hdr>
  1544. int main() { return 0; }
  1545. int t() {
  1546. DIR *dirp = 0;
  1547. ; return 0; }
  1548. EOF
  1549. if eval $ac_compile; then
  1550.   rm -rf conftest*
  1551.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1552. else
  1553.   rm -rf conftest*
  1554.   eval "ac_cv_header_dirent_$ac_safe=no"
  1555. fi
  1556. rm -f conftest*
  1557.  
  1558. fi
  1559. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1560.   echo "$ac_t""yes" 1>&6
  1561.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  1562.   cat >> confdefs.h <<EOF
  1563. #define $ac_tr_hdr 1
  1564. EOF
  1565.  ac_header_dirent=$ac_hdr; break
  1566. else
  1567.   echo "$ac_t""no" 1>&6
  1568. fi
  1569. done
  1570. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1571. if test $ac_header_dirent = dirent.h; then
  1572. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  1573. ac_lib_var=`echo dir | tr '.-/+' '___p'`
  1574. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1575.   echo $ac_n "(cached) $ac_c" 1>&6
  1576. else
  1577.   ac_save_LIBS="$LIBS"
  1578. LIBS="-ldir  $LIBS"
  1579. cat > conftest.$ac_ext <<EOF
  1580. #line 1581 "configure"
  1581. #include "confdefs.h"
  1582.  
  1583. int main() { return 0; }
  1584. int t() {
  1585. opendir()
  1586. ; return 0; }
  1587. EOF
  1588. if eval $ac_link; then
  1589.   rm -rf conftest*
  1590.   eval "ac_cv_lib_$ac_lib_var=yes"
  1591. else
  1592.   rm -rf conftest*
  1593.   eval "ac_cv_lib_$ac_lib_var=no"
  1594. fi
  1595. rm -f conftest*
  1596. LIBS="$ac_save_LIBS"
  1597.  
  1598. fi
  1599. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1600.   echo "$ac_t""yes" 1>&6
  1601.   LIBS="$LIBS -ldir"
  1602. else
  1603.   echo "$ac_t""no" 1>&6
  1604. fi
  1605.  
  1606. else
  1607. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1608. ac_lib_var=`echo x | tr '.-/+' '___p'`
  1609. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1610.   echo $ac_n "(cached) $ac_c" 1>&6
  1611. else
  1612.   ac_save_LIBS="$LIBS"
  1613. LIBS="-lx  $LIBS"
  1614. cat > conftest.$ac_ext <<EOF
  1615. #line 1616 "configure"
  1616. #include "confdefs.h"
  1617.  
  1618. int main() { return 0; }
  1619. int t() {
  1620. opendir()
  1621. ; return 0; }
  1622. EOF
  1623. if eval $ac_link; then
  1624.   rm -rf conftest*
  1625.   eval "ac_cv_lib_$ac_lib_var=yes"
  1626. else
  1627.   rm -rf conftest*
  1628.   eval "ac_cv_lib_$ac_lib_var=no"
  1629. fi
  1630. rm -f conftest*
  1631. LIBS="$ac_save_LIBS"
  1632.  
  1633. fi
  1634. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1635.   echo "$ac_t""yes" 1>&6
  1636.   LIBS="$LIBS -lx"
  1637. else
  1638.   echo "$ac_t""no" 1>&6
  1639. fi
  1640.  
  1641. fi
  1642.  
  1643. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1644. if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1645.   echo $ac_n "(cached) $ac_c" 1>&6
  1646. else
  1647.   cat > conftest.$ac_ext <<EOF
  1648. #line 1649 "configure"
  1649. #include "confdefs.h"
  1650. #include <sys/types.h>
  1651. #include <sys/stat.h>
  1652.  
  1653. #if defined(S_ISBLK) && defined(S_IFDIR)
  1654. # if S_ISBLK (S_IFDIR)
  1655. You lose.
  1656. # endif
  1657. #endif
  1658.  
  1659. #if defined(S_ISBLK) && defined(S_IFCHR)
  1660. # if S_ISBLK (S_IFCHR)
  1661. You lose.
  1662. # endif
  1663. #endif
  1664.  
  1665. #if defined(S_ISLNK) && defined(S_IFREG)
  1666. # if S_ISLNK (S_IFREG)
  1667. You lose.
  1668. # endif
  1669. #endif
  1670.  
  1671. #if defined(S_ISSOCK) && defined(S_IFREG)
  1672. # if S_ISSOCK (S_IFREG)
  1673. You lose.
  1674. # endif
  1675. #endif
  1676.  
  1677. EOF
  1678. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1679.   egrep "You lose" >/dev/null 2>&1; then
  1680.   rm -rf conftest*
  1681.   ac_cv_header_stat_broken=yes
  1682. else
  1683.   rm -rf conftest*
  1684.   ac_cv_header_stat_broken=no
  1685. fi
  1686. rm -f conftest*
  1687.  
  1688. fi
  1689.  
  1690. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1691. if test $ac_cv_header_stat_broken = yes; then
  1692.   cat >> confdefs.h <<\EOF
  1693. #define STAT_MACROS_BROKEN 1
  1694. EOF
  1695.  
  1696. fi
  1697.  
  1698. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1699. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1700.   echo $ac_n "(cached) $ac_c" 1>&6
  1701. else
  1702.   cat > conftest.$ac_ext <<EOF
  1703. #line 1704 "configure"
  1704. #include "confdefs.h"
  1705. #include <stdlib.h>
  1706. #include <stdarg.h>
  1707. #include <string.h>
  1708. #include <float.h>
  1709. EOF
  1710. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1711. ac_err=`grep -v '^ *+' conftest.out`
  1712. if test -z "$ac_err"; then
  1713.   rm -rf conftest*
  1714.   ac_cv_header_stdc=yes
  1715. else
  1716.   echo "$ac_err" >&5
  1717.   rm -rf conftest*
  1718.   ac_cv_header_stdc=no
  1719. fi
  1720. rm -f conftest*
  1721.  
  1722. if test $ac_cv_header_stdc = yes; then
  1723.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1724. cat > conftest.$ac_ext <<EOF
  1725. #line 1726 "configure"
  1726. #include "confdefs.h"
  1727. #include <string.h>
  1728. EOF
  1729. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1730.   egrep "memchr" >/dev/null 2>&1; then
  1731.   :
  1732. else
  1733.   rm -rf conftest*
  1734.   ac_cv_header_stdc=no
  1735. fi
  1736. rm -f conftest*
  1737.  
  1738. fi
  1739.  
  1740. if test $ac_cv_header_stdc = yes; then
  1741.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1742. cat > conftest.$ac_ext <<EOF
  1743. #line 1744 "configure"
  1744. #include "confdefs.h"
  1745. #include <stdlib.h>
  1746. EOF
  1747. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1748.   egrep "free" >/dev/null 2>&1; then
  1749.   :
  1750. else
  1751.   rm -rf conftest*
  1752.   ac_cv_header_stdc=no
  1753. fi
  1754. rm -f conftest*
  1755.  
  1756. fi
  1757.  
  1758. if test $ac_cv_header_stdc = yes; then
  1759.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1760. if test "$cross_compiling" = yes; then
  1761.   :
  1762. else
  1763. cat > conftest.$ac_ext <<EOF
  1764. #line 1765 "configure"
  1765. #include "confdefs.h"
  1766. #include <ctype.h>
  1767. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1768. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1769. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1770. int main () { int i; for (i = 0; i < 256; i++)
  1771. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1772. exit (0); }
  1773.  
  1774. EOF
  1775. eval $ac_link
  1776. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1777.   :
  1778. else
  1779.   ac_cv_header_stdc=no
  1780. fi
  1781. fi
  1782. rm -fr conftest*
  1783. fi
  1784. fi
  1785.  
  1786. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1787. if test $ac_cv_header_stdc = yes; then
  1788.   cat >> confdefs.h <<\EOF
  1789. #define STDC_HEADERS 1
  1790. EOF
  1791.  
  1792. fi
  1793.  
  1794. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  1795. if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  1796.   echo $ac_n "(cached) $ac_c" 1>&6
  1797. else
  1798.   cat > conftest.$ac_ext <<EOF
  1799. #line 1800 "configure"
  1800. #include "confdefs.h"
  1801. #include <sys/types.h>
  1802. #include <time.h>
  1803. int main() { return 0; }
  1804. int t() {
  1805. struct tm *tp; tp->tm_sec;
  1806. ; return 0; }
  1807. EOF
  1808. if eval $ac_compile; then
  1809.   rm -rf conftest*
  1810.   ac_cv_struct_tm=time.h
  1811. else
  1812.   rm -rf conftest*
  1813.   ac_cv_struct_tm=sys/time.h
  1814. fi
  1815. rm -f conftest*
  1816.  
  1817. fi
  1818.  
  1819. echo "$ac_t""$ac_cv_struct_tm" 1>&6
  1820. if test $ac_cv_struct_tm = sys/time.h; then
  1821.   cat >> confdefs.h <<\EOF
  1822. #define TM_IN_SYS_TIME 1
  1823. EOF
  1824.  
  1825. fi
  1826.  
  1827. echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
  1828. if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
  1829.   echo $ac_n "(cached) $ac_c" 1>&6
  1830. else
  1831.   cat > conftest.$ac_ext <<EOF
  1832. #line 1833 "configure"
  1833. #include "confdefs.h"
  1834. #include <sys/types.h>
  1835. #include <$ac_cv_struct_tm>
  1836. int main() { return 0; }
  1837. int t() {
  1838. struct tm tm; tm.tm_zone;
  1839. ; return 0; }
  1840. EOF
  1841. if eval $ac_compile; then
  1842.   rm -rf conftest*
  1843.   ac_cv_struct_tm_zone=yes
  1844. else
  1845.   rm -rf conftest*
  1846.   ac_cv_struct_tm_zone=no
  1847. fi
  1848. rm -f conftest*
  1849.  
  1850. fi
  1851.  
  1852. echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
  1853. if test "$ac_cv_struct_tm_zone" = yes; then
  1854.   cat >> confdefs.h <<\EOF
  1855. #define HAVE_TM_ZONE 1
  1856. EOF
  1857.  
  1858. else
  1859.   echo $ac_n "checking for tzname""... $ac_c" 1>&6
  1860. if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
  1861.   echo $ac_n "(cached) $ac_c" 1>&6
  1862. else
  1863.   cat > conftest.$ac_ext <<EOF
  1864. #line 1865 "configure"
  1865. #include "confdefs.h"
  1866. #include <time.h>
  1867. #ifndef tzname /* For SGI.  */
  1868. extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
  1869. #endif
  1870. int main() { return 0; }
  1871. int t() {
  1872. atoi(*tzname);
  1873. ; return 0; }
  1874. EOF
  1875. if eval $ac_link; then
  1876.   rm -rf conftest*
  1877.   ac_cv_var_tzname=yes
  1878. else
  1879.   rm -rf conftest*
  1880.   ac_cv_var_tzname=no
  1881. fi
  1882. rm -f conftest*
  1883.  
  1884. fi
  1885.  
  1886. echo "$ac_t""$ac_cv_var_tzname" 1>&6
  1887.   if test $ac_cv_var_tzname = yes; then
  1888.     cat >> confdefs.h <<\EOF
  1889. #define HAVE_TZNAME 1
  1890. EOF
  1891.  
  1892.   fi
  1893. fi
  1894.  
  1895. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1896. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1897.   echo $ac_n "(cached) $ac_c" 1>&6
  1898. else
  1899.   cat > conftest.$ac_ext <<EOF
  1900. #line 1901 "configure"
  1901. #include "confdefs.h"
  1902. #include <sys/types.h>
  1903. #if STDC_HEADERS
  1904. #include <stdlib.h>
  1905. #endif
  1906. EOF
  1907. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1908.   egrep "size_t" >/dev/null 2>&1; then
  1909.   rm -rf conftest*
  1910.   ac_cv_type_size_t=yes
  1911. else
  1912.   rm -rf conftest*
  1913.   ac_cv_type_size_t=no
  1914. fi
  1915. rm -f conftest*
  1916.  
  1917. fi
  1918. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1919. if test $ac_cv_type_size_t = no; then
  1920.   cat >> confdefs.h <<\EOF
  1921. #define size_t unsigned
  1922. EOF
  1923.  
  1924. fi
  1925.  
  1926.  
  1927. for ac_func in basename fchmod getcwd isascii memcpy strchr strerror uname
  1928. do
  1929. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1930. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1931.   echo $ac_n "(cached) $ac_c" 1>&6
  1932. else
  1933.   cat > conftest.$ac_ext <<EOF
  1934. #line 1935 "configure"
  1935. #include "confdefs.h"
  1936. /* System header to define __stub macros and hopefully few prototypes,
  1937.     which can conflict with char $ac_func(); below.  */
  1938. #include <assert.h>
  1939. /* Override any gcc2 internal prototype to avoid an error.  */
  1940. char $ac_func();
  1941.  
  1942. int main() { return 0; }
  1943. int t() {
  1944.  
  1945. /* The GNU C library defines this for functions which it implements
  1946.     to always fail with ENOSYS.  Some functions are actually named
  1947.     something starting with __ and the normal name is an alias.  */
  1948. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1949. choke me
  1950. #else
  1951. $ac_func();
  1952. #endif
  1953.  
  1954. ; return 0; }
  1955. EOF
  1956. if eval $ac_link; then
  1957.   rm -rf conftest*
  1958.   eval "ac_cv_func_$ac_func=yes"
  1959. else
  1960.   rm -rf conftest*
  1961.   eval "ac_cv_func_$ac_func=no"
  1962. fi
  1963. rm -f conftest*
  1964.  
  1965. fi
  1966. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1967.   echo "$ac_t""yes" 1>&6
  1968.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1969.   cat >> confdefs.h <<EOF
  1970. #define $ac_tr_func 1
  1971. EOF
  1972.  
  1973. else
  1974.   echo "$ac_t""no" 1>&6
  1975. fi
  1976. done
  1977.  
  1978. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1979. # for constant arguments.  Useless!
  1980. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1981. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1982.   echo $ac_n "(cached) $ac_c" 1>&6
  1983. else
  1984.   cat > conftest.$ac_ext <<EOF
  1985. #line 1986 "configure"
  1986. #include "confdefs.h"
  1987. #include <alloca.h>
  1988. int main() { return 0; }
  1989. int t() {
  1990. char *p = alloca(2 * sizeof(int));
  1991. ; return 0; }
  1992. EOF
  1993. if eval $ac_link; then
  1994.   rm -rf conftest*
  1995.   ac_cv_header_alloca_h=yes
  1996. else
  1997.   rm -rf conftest*
  1998.   ac_cv_header_alloca_h=no
  1999. fi
  2000. rm -f conftest*
  2001.  
  2002. fi
  2003.  
  2004. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  2005. if test $ac_cv_header_alloca_h = yes; then
  2006.   cat >> confdefs.h <<\EOF
  2007. #define HAVE_ALLOCA_H 1
  2008. EOF
  2009.  
  2010. fi
  2011.  
  2012. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  2013. if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  2014.   echo $ac_n "(cached) $ac_c" 1>&6
  2015. else
  2016.   cat > conftest.$ac_ext <<EOF
  2017. #line 2018 "configure"
  2018. #include "confdefs.h"
  2019.  
  2020. #ifdef __GNUC__
  2021. # define alloca __builtin_alloca
  2022. #else
  2023. # if HAVE_ALLOCA_H
  2024. #  include <alloca.h>
  2025. # else
  2026. #  ifdef _AIX
  2027.  #pragma alloca
  2028. #  else
  2029. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  2030. char *alloca ();
  2031. #   endif
  2032. #  endif
  2033. # endif
  2034. #endif
  2035.  
  2036. int main() { return 0; }
  2037. int t() {
  2038. char *p = (char *) alloca(1);
  2039. ; return 0; }
  2040. EOF
  2041. if eval $ac_link; then
  2042.   rm -rf conftest*
  2043.   ac_cv_func_alloca=yes
  2044. else
  2045.   rm -rf conftest*
  2046.   ac_cv_func_alloca=no
  2047. fi
  2048. rm -f conftest*
  2049.  
  2050. fi
  2051.  
  2052. echo "$ac_t""$ac_cv_func_alloca" 1>&6
  2053. if test $ac_cv_func_alloca = yes; then
  2054.   cat >> confdefs.h <<\EOF
  2055. #define HAVE_ALLOCA 1
  2056. EOF
  2057.  
  2058. fi
  2059.  
  2060. if test $ac_cv_func_alloca = no; then
  2061.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2062.   # that cause trouble.  Some versions do not even contain alloca or
  2063.   # contain a buggy version.  If you still want to use their alloca,
  2064.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  2065.   ALLOCA=alloca.o
  2066.   cat >> confdefs.h <<\EOF
  2067. #define C_ALLOCA 1
  2068. EOF
  2069.  
  2070.  
  2071. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  2072. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  2073.   echo $ac_n "(cached) $ac_c" 1>&6
  2074. else
  2075.   cat > conftest.$ac_ext <<EOF
  2076. #line 2077 "configure"
  2077. #include "confdefs.h"
  2078. #if defined(CRAY) && ! defined(CRAY2)
  2079. webecray
  2080. #else
  2081. wenotbecray
  2082. #endif
  2083.  
  2084. EOF
  2085. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2086.   egrep "webecray" >/dev/null 2>&1; then
  2087.   rm -rf conftest*
  2088.   ac_cv_os_cray=yes
  2089. else
  2090.   rm -rf conftest*
  2091.   ac_cv_os_cray=no
  2092. fi
  2093. rm -f conftest*
  2094.  
  2095. fi
  2096.  
  2097. echo "$ac_t""$ac_cv_os_cray" 1>&6
  2098. if test $ac_cv_os_cray = yes; then
  2099. for ac_func in _getb67 GETB67 getb67; do
  2100.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2101. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2102.   echo $ac_n "(cached) $ac_c" 1>&6
  2103. else
  2104.   cat > conftest.$ac_ext <<EOF
  2105. #line 2106 "configure"
  2106. #include "confdefs.h"
  2107. /* System header to define __stub macros and hopefully few prototypes,
  2108.     which can conflict with char $ac_func(); below.  */
  2109. #include <assert.h>
  2110. /* Override any gcc2 internal prototype to avoid an error.  */
  2111. char $ac_func();
  2112.  
  2113. int main() { return 0; }
  2114. int t() {
  2115.  
  2116. /* The GNU C library defines this for functions which it implements
  2117.     to always fail with ENOSYS.  Some functions are actually named
  2118.     something starting with __ and the normal name is an alias.  */
  2119. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2120. choke me
  2121. #else
  2122. $ac_func();
  2123. #endif
  2124.  
  2125. ; return 0; }
  2126. EOF
  2127. if eval $ac_link; then
  2128.   rm -rf conftest*
  2129.   eval "ac_cv_func_$ac_func=yes"
  2130. else
  2131.   rm -rf conftest*
  2132.   eval "ac_cv_func_$ac_func=no"
  2133. fi
  2134. rm -f conftest*
  2135.  
  2136. fi
  2137. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2138.   echo "$ac_t""yes" 1>&6
  2139.   cat >> confdefs.h <<EOF
  2140. #define CRAY_STACKSEG_END $ac_func
  2141. EOF
  2142.  
  2143.   break
  2144. else
  2145.   echo "$ac_t""no" 1>&6
  2146. fi
  2147.  
  2148. done
  2149. fi
  2150.  
  2151. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  2152. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2153.   echo $ac_n "(cached) $ac_c" 1>&6
  2154. else
  2155.   if test "$cross_compiling" = yes; then
  2156.   ac_cv_c_stack_direction=0
  2157. else
  2158. cat > conftest.$ac_ext <<EOF
  2159. #line 2160 "configure"
  2160. #include "confdefs.h"
  2161. find_stack_direction ()
  2162. {
  2163.   static char *addr = 0;
  2164.   auto char dummy;
  2165.   if (addr == 0)
  2166.     {
  2167.       addr = &dummy;
  2168.       return find_stack_direction ();
  2169.     }
  2170.   else
  2171.     return (&dummy > addr) ? 1 : -1;
  2172. }
  2173. main ()
  2174. {
  2175.   exit (find_stack_direction() < 0);
  2176. }
  2177. EOF
  2178. eval $ac_link
  2179. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2180.   ac_cv_c_stack_direction=1
  2181. else
  2182.   ac_cv_c_stack_direction=-1
  2183. fi
  2184. fi
  2185. rm -fr conftest*
  2186. fi
  2187.  
  2188. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  2189. cat >> confdefs.h <<EOF
  2190. #define STACK_DIRECTION $ac_cv_c_stack_direction
  2191. EOF
  2192.  
  2193. fi
  2194.  
  2195. echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
  2196. if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
  2197.   echo $ac_n "(cached) $ac_c" 1>&6
  2198. else
  2199.   if test "$cross_compiling" = yes; then
  2200.   ac_cv_func_closedir_void=yes
  2201. else
  2202. cat > conftest.$ac_ext <<EOF
  2203. #line 2204 "configure"
  2204. #include "confdefs.h"
  2205. #include <sys/types.h>
  2206. #include <$ac_header_dirent>
  2207. int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  2208. EOF
  2209. eval $ac_link
  2210. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2211.   ac_cv_func_closedir_void=no
  2212. else
  2213.   ac_cv_func_closedir_void=yes
  2214. fi
  2215. fi
  2216. rm -fr conftest*
  2217. fi
  2218.  
  2219. echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
  2220. if test $ac_cv_func_closedir_void = yes; then
  2221.   cat >> confdefs.h <<\EOF
  2222. #define CLOSEDIR_VOID 1
  2223. EOF
  2224.  
  2225. fi
  2226.  
  2227. # strftime is in -lintl on SCO UNIX.
  2228. echo $ac_n "checking for -lintl""... $ac_c" 1>&6
  2229. ac_lib_var=`echo intl | tr '.-/+' '___p'`
  2230. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2231.   echo $ac_n "(cached) $ac_c" 1>&6
  2232. else
  2233.   ac_save_LIBS="$LIBS"
  2234. LIBS="-lintl  $LIBS"
  2235. cat > conftest.$ac_ext <<EOF
  2236. #line 2237 "configure"
  2237. #include "confdefs.h"
  2238.  
  2239. int main() { return 0; }
  2240. int t() {
  2241. strftime()
  2242. ; return 0; }
  2243. EOF
  2244. if eval $ac_link; then
  2245.   rm -rf conftest*
  2246.   eval "ac_cv_lib_$ac_lib_var=yes"
  2247. else
  2248.   rm -rf conftest*
  2249.   eval "ac_cv_lib_$ac_lib_var=no"
  2250. fi
  2251. rm -f conftest*
  2252. LIBS="$ac_save_LIBS"
  2253.  
  2254. fi
  2255. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2256.   echo "$ac_t""yes" 1>&6
  2257.   LIBS="-lintl $LIBS"
  2258. else
  2259.   echo "$ac_t""no" 1>&6
  2260. fi
  2261.  
  2262. echo $ac_n "checking for strftime""... $ac_c" 1>&6
  2263. if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
  2264.   echo $ac_n "(cached) $ac_c" 1>&6
  2265. else
  2266.   cat > conftest.$ac_ext <<EOF
  2267. #line 2268 "configure"
  2268. #include "confdefs.h"
  2269. /* System header to define __stub macros and hopefully few prototypes,
  2270.     which can conflict with char strftime(); below.  */
  2271. #include <assert.h>
  2272. /* Override any gcc2 internal prototype to avoid an error.  */
  2273. char strftime();
  2274.  
  2275. int main() { return 0; }
  2276. int t() {
  2277.  
  2278. /* The GNU C library defines this for functions which it implements
  2279.     to always fail with ENOSYS.  Some functions are actually named
  2280.     something starting with __ and the normal name is an alias.  */
  2281. #if defined (__stub_strftime) || defined (__stub___strftime)
  2282. choke me
  2283. #else
  2284. strftime();
  2285. #endif
  2286.  
  2287. ; return 0; }
  2288. EOF
  2289. if eval $ac_link; then
  2290.   rm -rf conftest*
  2291.   eval "ac_cv_func_strftime=yes"
  2292. else
  2293.   rm -rf conftest*
  2294.   eval "ac_cv_func_strftime=no"
  2295. fi
  2296. rm -f conftest*
  2297.  
  2298. fi
  2299. if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
  2300.   echo "$ac_t""yes" 1>&6
  2301.   cat >> confdefs.h <<\EOF
  2302. #define HAVE_STRFTIME 1
  2303. EOF
  2304.  
  2305. else
  2306.   echo "$ac_t""no" 1>&6
  2307. fi
  2308.  
  2309. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  2310. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  2311.   echo $ac_n "(cached) $ac_c" 1>&6
  2312. else
  2313.   cat > conftest.$ac_ext <<EOF
  2314. #line 2315 "configure"
  2315. #include "confdefs.h"
  2316. /* System header to define __stub macros and hopefully few prototypes,
  2317.     which can conflict with char vprintf(); below.  */
  2318. #include <assert.h>
  2319. /* Override any gcc2 internal prototype to avoid an error.  */
  2320. char vprintf();
  2321.  
  2322. int main() { return 0; }
  2323. int t() {
  2324.  
  2325. /* The GNU C library defines this for functions which it implements
  2326.     to always fail with ENOSYS.  Some functions are actually named
  2327.     something starting with __ and the normal name is an alias.  */
  2328. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  2329. choke me
  2330. #else
  2331. vprintf();
  2332. #endif
  2333.  
  2334. ; return 0; }
  2335. EOF
  2336. if eval $ac_link; then
  2337.   rm -rf conftest*
  2338.   eval "ac_cv_func_vprintf=yes"
  2339. else
  2340.   rm -rf conftest*
  2341.   eval "ac_cv_func_vprintf=no"
  2342. fi
  2343. rm -f conftest*
  2344.  
  2345. fi
  2346. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  2347.   echo "$ac_t""yes" 1>&6
  2348.   cat >> confdefs.h <<\EOF
  2349. #define HAVE_VPRINTF 1
  2350. EOF
  2351.  
  2352. else
  2353.   echo "$ac_t""no" 1>&6
  2354. fi
  2355.  
  2356. if test "$ac_cv_func_vprintf" != yes; then
  2357. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  2358. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  2359.   echo $ac_n "(cached) $ac_c" 1>&6
  2360. else
  2361.   cat > conftest.$ac_ext <<EOF
  2362. #line 2363 "configure"
  2363. #include "confdefs.h"
  2364. /* System header to define __stub macros and hopefully few prototypes,
  2365.     which can conflict with char _doprnt(); below.  */
  2366. #include <assert.h>
  2367. /* Override any gcc2 internal prototype to avoid an error.  */
  2368. char _doprnt();
  2369.  
  2370. int main() { return 0; }
  2371. int t() {
  2372.  
  2373. /* The GNU C library defines this for functions which it implements
  2374.     to always fail with ENOSYS.  Some functions are actually named
  2375.     something starting with __ and the normal name is an alias.  */
  2376. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  2377. choke me
  2378. #else
  2379. _doprnt();
  2380. #endif
  2381.  
  2382. ; return 0; }
  2383. EOF
  2384. if eval $ac_link; then
  2385.   rm -rf conftest*
  2386.   eval "ac_cv_func__doprnt=yes"
  2387. else
  2388.   rm -rf conftest*
  2389.   eval "ac_cv_func__doprnt=no"
  2390. fi
  2391. rm -f conftest*
  2392.  
  2393. fi
  2394. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  2395.   echo "$ac_t""yes" 1>&6
  2396.   cat >> confdefs.h <<\EOF
  2397. #define HAVE_DOPRNT 1
  2398. EOF
  2399.  
  2400. else
  2401.   echo "$ac_t""no" 1>&6
  2402. fi
  2403.  
  2404. fi
  2405.  
  2406. for ac_func in memset mktime stpcpy strftime
  2407. do
  2408. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2409. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2410.   echo $ac_n "(cached) $ac_c" 1>&6
  2411. else
  2412.   cat > conftest.$ac_ext <<EOF
  2413. #line 2414 "configure"
  2414. #include "confdefs.h"
  2415. /* System header to define __stub macros and hopefully few prototypes,
  2416.     which can conflict with char $ac_func(); below.  */
  2417. #include <assert.h>
  2418. /* Override any gcc2 internal prototype to avoid an error.  */
  2419. char $ac_func();
  2420.  
  2421. int main() { return 0; }
  2422. int t() {
  2423.  
  2424. /* The GNU C library defines this for functions which it implements
  2425.     to always fail with ENOSYS.  Some functions are actually named
  2426.     something starting with __ and the normal name is an alias.  */
  2427. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2428. choke me
  2429. #else
  2430. $ac_func();
  2431. #endif
  2432.  
  2433. ; return 0; }
  2434. EOF
  2435. if eval $ac_link; then
  2436.   rm -rf conftest*
  2437.   eval "ac_cv_func_$ac_func=yes"
  2438. else
  2439.   rm -rf conftest*
  2440.   eval "ac_cv_func_$ac_func=no"
  2441. fi
  2442. rm -f conftest*
  2443.  
  2444. fi
  2445. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2446.   echo "$ac_t""yes" 1>&6
  2447.   :
  2448. else
  2449.   echo "$ac_t""no" 1>&6
  2450. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2451. fi
  2452.  
  2453. done
  2454.  
  2455. test "$ac_cv_func_basename" = yes || LIBOBJS="$LIBOBJS basename.o"
  2456.  
  2457. echo $ac_n "checking for /etc/systemid""... $ac_c" 1>&6
  2458. if test -f /etc/systemid; then
  2459.   echo "$ac_t""yes" 1>&6
  2460.   cat >> confdefs.h <<\EOF
  2461. #define HAVE_ETC_SYSTEMID 1
  2462. EOF
  2463.  
  2464. else
  2465.   echo "$ac_t""no" 1>&6
  2466. fi
  2467.  
  2468. echo $ac_n "checking if uuencode and uudecode are wanted""... $ac_c" 1>&6
  2469. # Check whether --enable-uucode or --disable-uucode was given.
  2470. if test "${enable_uucode+set}" = set; then
  2471.   enableval="$enable_uucode"
  2472.   if test "$enableval" = yes; then
  2473.   echo "$ac_t""yes" 1>&6
  2474.   PROGRAMS="$PROGRAMS uudecode uuencode"
  2475.   # uuencode.1 should install first, for uudecode.1 will be a link to it.
  2476.   MAN1PAGES="$MAN1PAGES uuencode uudecode"
  2477.   MAN5PAGES="$MAN5PAGES uuencode"
  2478. else
  2479.   echo "$ac_t""no" 1>&6
  2480. fi
  2481. else
  2482.   
  2483.   echo "$ac_t""yes" 1>&6
  2484.   PROGRAMS="$PROGRAMS uudecode uuencode"
  2485.   # uuencode.1 should install first, for uudecode.1 will be a link to it.
  2486.   MAN1PAGES="$MAN1PAGES uuencode uudecode"
  2487.   MAN5PAGES="$MAN5PAGES uuencode"
  2488.  
  2489. fi
  2490.  
  2491.  
  2492. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2493. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  2494.   echo $ac_n "(cached) $ac_c" 1>&6
  2495. else
  2496.   cat > conftest.$ac_ext <<EOF
  2497. #line 2498 "configure"
  2498. #include "confdefs.h"
  2499. #include <sys/types.h>
  2500. #if STDC_HEADERS
  2501. #include <stdlib.h>
  2502. #endif
  2503. EOF
  2504. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2505.   egrep "off_t" >/dev/null 2>&1; then
  2506.   rm -rf conftest*
  2507.   ac_cv_type_off_t=yes
  2508. else
  2509.   rm -rf conftest*
  2510.   ac_cv_type_off_t=no
  2511. fi
  2512. rm -f conftest*
  2513.  
  2514. fi
  2515. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2516. if test $ac_cv_type_off_t = no; then
  2517.   cat >> confdefs.h <<\EOF
  2518. #define off_t long
  2519. EOF
  2520.  
  2521. fi
  2522.  
  2523. for ac_func in valloc getpagesize
  2524. do
  2525. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2526. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2527.   echo $ac_n "(cached) $ac_c" 1>&6
  2528. else
  2529.   cat > conftest.$ac_ext <<EOF
  2530. #line 2531 "configure"
  2531. #include "confdefs.h"
  2532. /* System header to define __stub macros and hopefully few prototypes,
  2533.     which can conflict with char $ac_func(); below.  */
  2534. #include <assert.h>
  2535. /* Override any gcc2 internal prototype to avoid an error.  */
  2536. char $ac_func();
  2537.  
  2538. int main() { return 0; }
  2539. int t() {
  2540.  
  2541. /* The GNU C library defines this for functions which it implements
  2542.     to always fail with ENOSYS.  Some functions are actually named
  2543.     something starting with __ and the normal name is an alias.  */
  2544. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2545. choke me
  2546. #else
  2547. $ac_func();
  2548. #endif
  2549.  
  2550. ; return 0; }
  2551. EOF
  2552. if eval $ac_link; then
  2553.   rm -rf conftest*
  2554.   eval "ac_cv_func_$ac_func=yes"
  2555. else
  2556.   rm -rf conftest*
  2557.   eval "ac_cv_func_$ac_func=no"
  2558. fi
  2559. rm -f conftest*
  2560.  
  2561. fi
  2562. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2563.   echo "$ac_t""yes" 1>&6
  2564.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2565.   cat >> confdefs.h <<EOF
  2566. #define $ac_tr_func 1
  2567. EOF
  2568.  
  2569. else
  2570.   echo "$ac_t""no" 1>&6
  2571. fi
  2572. done
  2573.  
  2574. echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  2575. if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
  2576.   echo $ac_n "(cached) $ac_c" 1>&6
  2577. else
  2578.   if test "$cross_compiling" = yes; then
  2579.   ac_cv_func_mmap=no
  2580. else
  2581. cat > conftest.$ac_ext <<EOF
  2582. #line 2583 "configure"
  2583. #include "confdefs.h"
  2584.  
  2585. /* Thanks to Mike Haertel and Jim Avera for this test. */
  2586. #include <sys/types.h>
  2587. #include <fcntl.h>
  2588. #include <sys/mman.h>
  2589.  
  2590. #ifndef HAVE_GETPAGESIZE
  2591. # include <sys/param.h>
  2592. # ifdef EXEC_PAGESIZE
  2593. #  define getpagesize() EXEC_PAGESIZE
  2594. # else
  2595. #  ifdef NBPG
  2596. #   define getpagesize() NBPG * CLSIZE
  2597. #   ifndef CLSIZE
  2598. #    define CLSIZE 1
  2599. #   endif
  2600. #  else
  2601. #   ifdef NBPC
  2602. #    define getpagesize() NBPC
  2603. #   else
  2604. #    define getpagesize() PAGESIZE /* SVR4 */
  2605. #   endif
  2606. #  endif
  2607. # endif
  2608. #endif
  2609.  
  2610. #ifndef HAVE_VALLOC
  2611. # define valloc malloc
  2612. #endif
  2613.  
  2614. #ifdef __cplusplus
  2615. extern "C" { void *valloc(unsigned), *malloc(unsigned); }
  2616. #else
  2617. char *valloc(), *malloc();
  2618. #endif
  2619.  
  2620. int
  2621. main()
  2622. {
  2623.   char *buf1, *buf2, *buf3;
  2624.   int i = getpagesize(), j;
  2625.   int i2 = i * 2;
  2626.   int fd;
  2627.  
  2628.   buf1 = (char *)valloc(i2);
  2629.   buf2 = (char *)valloc(i);
  2630.   buf3 = (char *)malloc(i2);
  2631.   for (j = 0; j < i2; ++j)
  2632.     *(buf1 + j) = rand();
  2633.   fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
  2634.   write(fd, buf1, i2);
  2635.   mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
  2636.   for (j = 0; j < i; ++j)
  2637.     if (*(buf1 + j) != *(buf2 + j))
  2638.       exit(1);
  2639.   lseek(fd, (long)i, 0);
  2640.   read(fd, buf2, i); /* read into mapped memory -- file should not change */
  2641.   /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
  2642.   lseek(fd, (long)0, 0);
  2643.   read(fd, buf3, i2);
  2644.   for (j = 0; j < i2; ++j)
  2645.     if (*(buf1 + j) != *(buf3 + j))
  2646.       exit(1);
  2647.   exit(0);
  2648. }
  2649.  
  2650. EOF
  2651. eval $ac_link
  2652. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2653.   ac_cv_func_mmap=yes
  2654. else
  2655.   ac_cv_func_mmap=no
  2656. fi
  2657. fi
  2658. rm -fr conftest*
  2659. fi
  2660.  
  2661. echo "$ac_t""$ac_cv_func_mmap" 1>&6
  2662. if test $ac_cv_func_mmap = yes; then
  2663.   cat >> confdefs.h <<\EOF
  2664. #define HAVE_MMAP 1
  2665. EOF
  2666.  
  2667. fi
  2668.  
  2669.                            
  2670.    for ac_hdr in limits.h locale.h nl_types.h malloc.h string.h unistd.h values.h
  2671. do
  2672. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2673. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2674. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2675.   echo $ac_n "(cached) $ac_c" 1>&6
  2676. else
  2677.   cat > conftest.$ac_ext <<EOF
  2678. #line 2679 "configure"
  2679. #include "confdefs.h"
  2680. #include <$ac_hdr>
  2681. EOF
  2682. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2683. ac_err=`grep -v '^ *+' conftest.out`
  2684. if test -z "$ac_err"; then
  2685.   rm -rf conftest*
  2686.   eval "ac_cv_header_$ac_safe=yes"
  2687. else
  2688.   echo "$ac_err" >&5
  2689.   rm -rf conftest*
  2690.   eval "ac_cv_header_$ac_safe=no"
  2691. fi
  2692. rm -f conftest*
  2693. fi
  2694. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2695.   echo "$ac_t""yes" 1>&6
  2696.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2697.   cat >> confdefs.h <<EOF
  2698. #define $ac_tr_hdr 1
  2699. EOF
  2700.  
  2701. else
  2702.   echo "$ac_t""no" 1>&6
  2703. fi
  2704. done
  2705.  
  2706.    for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp
  2707. do
  2708. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2709. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2710.   echo $ac_n "(cached) $ac_c" 1>&6
  2711. else
  2712.   cat > conftest.$ac_ext <<EOF
  2713. #line 2714 "configure"
  2714. #include "confdefs.h"
  2715. /* System header to define __stub macros and hopefully few prototypes,
  2716.     which can conflict with char $ac_func(); below.  */
  2717. #include <assert.h>
  2718. /* Override any gcc2 internal prototype to avoid an error.  */
  2719. char $ac_func();
  2720.  
  2721. int main() { return 0; }
  2722. int t() {
  2723.  
  2724. /* The GNU C library defines this for functions which it implements
  2725.     to always fail with ENOSYS.  Some functions are actually named
  2726.     something starting with __ and the normal name is an alias.  */
  2727. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2728. choke me
  2729. #else
  2730. $ac_func();
  2731. #endif
  2732.  
  2733. ; return 0; }
  2734. EOF
  2735. if eval $ac_link; then
  2736.   rm -rf conftest*
  2737.   eval "ac_cv_func_$ac_func=yes"
  2738. else
  2739.   rm -rf conftest*
  2740.   eval "ac_cv_func_$ac_func=no"
  2741. fi
  2742. rm -f conftest*
  2743.  
  2744. fi
  2745. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2746.   echo "$ac_t""yes" 1>&6
  2747.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2748.   cat >> confdefs.h <<EOF
  2749. #define $ac_tr_func 1
  2750. EOF
  2751.  
  2752. else
  2753.   echo "$ac_t""no" 1>&6
  2754. fi
  2755. done
  2756.  
  2757.  
  2758.    if test "${ac_cv_func_stpcpy+set}" != "set"; then
  2759.      for ac_func in stpcpy
  2760. do
  2761. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2762. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2763.   echo $ac_n "(cached) $ac_c" 1>&6
  2764. else
  2765.   cat > conftest.$ac_ext <<EOF
  2766. #line 2767 "configure"
  2767. #include "confdefs.h"
  2768. /* System header to define __stub macros and hopefully few prototypes,
  2769.     which can conflict with char $ac_func(); below.  */
  2770. #include <assert.h>
  2771. /* Override any gcc2 internal prototype to avoid an error.  */
  2772. char $ac_func();
  2773.  
  2774. int main() { return 0; }
  2775. int t() {
  2776.  
  2777. /* The GNU C library defines this for functions which it implements
  2778.     to always fail with ENOSYS.  Some functions are actually named
  2779.     something starting with __ and the normal name is an alias.  */
  2780. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2781. choke me
  2782. #else
  2783. $ac_func();
  2784. #endif
  2785.  
  2786. ; return 0; }
  2787. EOF
  2788. if eval $ac_link; then
  2789.   rm -rf conftest*
  2790.   eval "ac_cv_func_$ac_func=yes"
  2791. else
  2792.   rm -rf conftest*
  2793.   eval "ac_cv_func_$ac_func=no"
  2794. fi
  2795. rm -f conftest*
  2796.  
  2797. fi
  2798. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2799.   echo "$ac_t""yes" 1>&6
  2800.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2801.   cat >> confdefs.h <<EOF
  2802. #define $ac_tr_func 1
  2803. EOF
  2804.  
  2805. else
  2806.   echo "$ac_t""no" 1>&6
  2807. fi
  2808. done
  2809.  
  2810.    fi
  2811.    if test "${ac_cv_func_stpcpy}" = "yes"; then
  2812.      cat >> confdefs.h <<\EOF
  2813. #define HAVE_STPCPY 1
  2814. EOF
  2815.  
  2816.    fi
  2817.  
  2818.    if test $ac_cv_header_locale_h = yes; then
  2819.     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
  2820.     if eval "test \"`echo '$''{'ud_cv_val_LC_MESSAGES'+set}'`\" = set"; then
  2821.   echo $ac_n "(cached) $ac_c" 1>&6
  2822. else
  2823.   cat > conftest.$ac_ext <<EOF
  2824. #line 2825 "configure"
  2825. #include "confdefs.h"
  2826. #include <locale.h>
  2827. int main() { return 0; }
  2828. int t() {
  2829. return LC_MESSAGES
  2830. ; return 0; }
  2831. EOF
  2832. if eval $ac_link; then
  2833.   rm -rf conftest*
  2834.   ud_cv_val_LC_MESSAGES=yes
  2835. else
  2836.   rm -rf conftest*
  2837.   ud_cv_val_LC_MESSAGES=no
  2838. fi
  2839. rm -f conftest*
  2840.  
  2841. fi
  2842.  
  2843.     echo "$ac_t""$ud_cv_val_LC_MESSAGES" 1>&6
  2844.     if test $ud_cv_val_LC_MESSAGES = yes; then
  2845.       cat >> confdefs.h <<\EOF
  2846. #define HAVE_LC_MESSAGES 1
  2847. EOF
  2848.  
  2849.     fi
  2850.   fi
  2851.    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
  2852.         # Check whether --enable-nls or --disable-nls was given.
  2853. if test "${enable_nls+set}" = set; then
  2854.   enableval="$enable_nls"
  2855.   nls_cv_use_nls=$enableval
  2856. else
  2857.   nls_cv_use_nls=yes
  2858. fi
  2859.  
  2860.     echo "$ac_t""$nls_cv_use_nls" 1>&6
  2861.  
  2862.         if test "$nls_cv_use_nls" = "yes"; then
  2863.       cat >> confdefs.h <<\EOF
  2864. #define ENABLE_NLS 1
  2865. EOF
  2866.  
  2867.       echo $ac_n "checking for explicitly using GNU gettext""... $ac_c" 1>&6
  2868.       # Check whether --with-gnu-gettext or --without-gnu-gettext was given.
  2869. if test "${with_gnu_gettext+set}" = set; then
  2870.   withval="$with_gnu_gettext"
  2871.   nls_cv_force_use_gnu_gettext=$withval
  2872. else
  2873.   nls_cv_force_use_gnu_gettext=no
  2874. fi
  2875.  
  2876.       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
  2877.  
  2878.       if test "$nls_cv_force_use_gnu_gettext" = "yes"; then
  2879.         nls_cv_use_gnu_gettext=yes
  2880.       else
  2881.                                 echo $ac_n "checking for -lintl""... $ac_c" 1>&6
  2882. ac_lib_var=`echo intl | tr '.-/+' '___p'`
  2883. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2884.   echo $ac_n "(cached) $ac_c" 1>&6
  2885. else
  2886.   ac_save_LIBS="$LIBS"
  2887. LIBS="-lintl  $LIBS"
  2888. cat > conftest.$ac_ext <<EOF
  2889. #line 2890 "configure"
  2890. #include "confdefs.h"
  2891.  
  2892. int main() { return 0; }
  2893. int t() {
  2894. main()
  2895. ; return 0; }
  2896. EOF
  2897. if eval $ac_link; then
  2898.   rm -rf conftest*
  2899.   eval "ac_cv_lib_$ac_lib_var=yes"
  2900. else
  2901.   rm -rf conftest*
  2902.   eval "ac_cv_lib_$ac_lib_var=no"
  2903. fi
  2904. rm -f conftest*
  2905. LIBS="$ac_save_LIBS"
  2906.  
  2907. fi
  2908. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2909.   echo "$ac_t""yes" 1>&6
  2910.     ac_tr_lib=HAVE_LIB`echo intl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2911.   cat >> confdefs.h <<EOF
  2912. #define $ac_tr_lib 1
  2913. EOF
  2914.  
  2915.   LIBS="-lintl $LIBS"
  2916.  
  2917. else
  2918.   echo "$ac_t""no" 1>&6
  2919. fi
  2920.  
  2921.         echo $ac_n "checking for -li""... $ac_c" 1>&6
  2922. ac_lib_var=`echo i | tr '.-/+' '___p'`
  2923. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2924.   echo $ac_n "(cached) $ac_c" 1>&6
  2925. else
  2926.   ac_save_LIBS="$LIBS"
  2927. LIBS="-li  $LIBS"
  2928. cat > conftest.$ac_ext <<EOF
  2929. #line 2930 "configure"
  2930. #include "confdefs.h"
  2931.  
  2932. int main() { return 0; }
  2933. int t() {
  2934. main()
  2935. ; return 0; }
  2936. EOF
  2937. if eval $ac_link; then
  2938.   rm -rf conftest*
  2939.   eval "ac_cv_lib_$ac_lib_var=yes"
  2940. else
  2941.   rm -rf conftest*
  2942.   eval "ac_cv_lib_$ac_lib_var=no"
  2943. fi
  2944. rm -f conftest*
  2945. LIBS="$ac_save_LIBS"
  2946.  
  2947. fi
  2948. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2949.   echo "$ac_t""yes" 1>&6
  2950.     ac_tr_lib=HAVE_LIB`echo i | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2951.   cat >> confdefs.h <<EOF
  2952. #define $ac_tr_lib 1
  2953. EOF
  2954.  
  2955.   LIBS="-li $LIBS"
  2956.  
  2957. else
  2958.   echo "$ac_t""no" 1>&6
  2959. fi
  2960.  
  2961.         CATOBJEXT=NONE
  2962.         echo $ac_n "checking for gettext""... $ac_c" 1>&6
  2963. if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
  2964.   echo $ac_n "(cached) $ac_c" 1>&6
  2965. else
  2966.   cat > conftest.$ac_ext <<EOF
  2967. #line 2968 "configure"
  2968. #include "confdefs.h"
  2969. /* System header to define __stub macros and hopefully few prototypes,
  2970.     which can conflict with char gettext(); below.  */
  2971. #include <assert.h>
  2972. /* Override any gcc2 internal prototype to avoid an error.  */
  2973. char gettext();
  2974.  
  2975. int main() { return 0; }
  2976. int t() {
  2977.  
  2978. /* The GNU C library defines this for functions which it implements
  2979.     to always fail with ENOSYS.  Some functions are actually named
  2980.     something starting with __ and the normal name is an alias.  */
  2981. #if defined (__stub_gettext) || defined (__stub___gettext)
  2982. choke me
  2983. #else
  2984. gettext();
  2985. #endif
  2986.  
  2987. ; return 0; }
  2988. EOF
  2989. if eval $ac_link; then
  2990.   rm -rf conftest*
  2991.   eval "ac_cv_func_gettext=yes"
  2992. else
  2993.   rm -rf conftest*
  2994.   eval "ac_cv_func_gettext=no"
  2995. fi
  2996. rm -f conftest*
  2997.  
  2998. fi
  2999. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  3000.   echo "$ac_t""yes" 1>&6
  3001.   cat >> confdefs.h <<\EOF
  3002. #define HAVE_GETTEXT 1
  3003. EOF
  3004.  
  3005.            # Extract the first word of "msgfmt", so it can be a program name with args.
  3006. set dummy msgfmt; ac_word=$2
  3007. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3008. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  3009.   echo $ac_n "(cached) $ac_c" 1>&6
  3010. else
  3011.   case "$MSGFMT" in
  3012.   /*)
  3013.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  3014.   ;;
  3015.   *)
  3016.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3017.   for ac_dir in $PATH; do
  3018.     test -z "$ac_dir" && ac_dir=.
  3019.     if test -f $ac_dir/$ac_word; then
  3020.       ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  3021.       break
  3022.     fi
  3023.   done
  3024.   IFS="$ac_save_ifs"
  3025.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  3026.   ;;
  3027. esac
  3028. fi
  3029. MSGFMT="$ac_cv_path_MSGFMT"
  3030. if test -n "$MSGFMT"; then
  3031.   echo "$ac_t""$MSGFMT" 1>&6
  3032. else
  3033.   echo "$ac_t""no" 1>&6
  3034. fi
  3035.        if test "$MSGFMT" != "no"; then
  3036.          for ac_func in dcgettext
  3037. do
  3038. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3039. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3040.   echo $ac_n "(cached) $ac_c" 1>&6
  3041. else
  3042.   cat > conftest.$ac_ext <<EOF
  3043. #line 3044 "configure"
  3044. #include "confdefs.h"
  3045. /* System header to define __stub macros and hopefully few prototypes,
  3046.     which can conflict with char $ac_func(); below.  */
  3047. #include <assert.h>
  3048. /* Override any gcc2 internal prototype to avoid an error.  */
  3049. char $ac_func();
  3050.  
  3051. int main() { return 0; }
  3052. int t() {
  3053.  
  3054. /* The GNU C library defines this for functions which it implements
  3055.     to always fail with ENOSYS.  Some functions are actually named
  3056.     something starting with __ and the normal name is an alias.  */
  3057. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3058. choke me
  3059. #else
  3060. $ac_func();
  3061. #endif
  3062.  
  3063. ; return 0; }
  3064. EOF
  3065. if eval $ac_link; then
  3066.   rm -rf conftest*
  3067.   eval "ac_cv_func_$ac_func=yes"
  3068. else
  3069.   rm -rf conftest*
  3070.   eval "ac_cv_func_$ac_func=no"
  3071. fi
  3072. rm -f conftest*
  3073.  
  3074. fi
  3075. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3076.   echo "$ac_t""yes" 1>&6
  3077.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3078.   cat >> confdefs.h <<EOF
  3079. #define $ac_tr_func 1
  3080. EOF
  3081.  
  3082. else
  3083.   echo "$ac_t""no" 1>&6
  3084. fi
  3085. done
  3086.  
  3087.          # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3088. set dummy gmsgfmt; ac_word=$2
  3089. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3090. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3091.   echo $ac_n "(cached) $ac_c" 1>&6
  3092. else
  3093.   case "$GMSGFMT" in
  3094.   /*)
  3095.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3096.   ;;
  3097.   *)
  3098.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3099.   for ac_dir in $PATH; do
  3100.     test -z "$ac_dir" && ac_dir=.
  3101.     if test -f $ac_dir/$ac_word; then
  3102.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3103.       break
  3104.     fi
  3105.   done
  3106.   IFS="$ac_save_ifs"
  3107.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3108.   ;;
  3109. esac
  3110. fi
  3111. GMSGFMT="$ac_cv_path_GMSGFMT"
  3112. if test -n "$GMSGFMT"; then
  3113.   echo "$ac_t""$GMSGFMT" 1>&6
  3114. else
  3115.   echo "$ac_t""no" 1>&6
  3116. fi
  3117.    if echo $GMSGFMT | grep openwin > /dev/null; then
  3118.      echo "WARNING: Do not use OpenWin's gmsgfmt.  (Better remove it.) >&6"
  3119.      ac_cv_path_GMSGFMT=gmsgfmt
  3120.      GMSGFMT=gmsgfmt
  3121.    fi
  3122.          # Extract the first word of "xgettext", so it can be a program name with args.
  3123. set dummy xgettext; ac_word=$2
  3124. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3125. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3126.   echo $ac_n "(cached) $ac_c" 1>&6
  3127. else
  3128.   case "$XGETTEXT" in
  3129.   /*)
  3130.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3131.   ;;
  3132.   *)
  3133.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3134.   for ac_dir in $PATH; do
  3135.     test -z "$ac_dir" && ac_dir=.
  3136.     if test -f $ac_dir/$ac_word; then
  3137.       ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3138.       break
  3139.     fi
  3140.   done
  3141.   IFS="$ac_save_ifs"
  3142.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
  3143.   ;;
  3144. esac
  3145. fi
  3146. XGETTEXT="$ac_cv_path_XGETTEXT"
  3147. if test -n "$XGETTEXT"; then
  3148.   echo "$ac_t""$XGETTEXT" 1>&6
  3149. else
  3150.   echo "$ac_t""no" 1>&6
  3151. fi
  3152.    if echo $XGETTEXT | grep openwin > /dev/null; then
  3153.      echo "WARNING: Do not use OpenWin's xgettext.  (Better remove it.) >&6"
  3154.      ac_cv_path_XGETTEXT=xgettext
  3155.      XGETTEXT=xgettext
  3156.    fi
  3157.              CATOBJEXT=.mo
  3158.          INSTOBJEXT=.mo
  3159.          DATADIRNAME=lib
  3160.        fi
  3161. else
  3162.   echo "$ac_t""no" 1>&6
  3163. fi
  3164.  
  3165.  
  3166.         if test "$CATOBJEXT" = "NONE"; then
  3167.                     echo $ac_n "checking for catgets""... $ac_c" 1>&6
  3168. if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
  3169.   echo $ac_n "(cached) $ac_c" 1>&6
  3170. else
  3171.   cat > conftest.$ac_ext <<EOF
  3172. #line 3173 "configure"
  3173. #include "confdefs.h"
  3174. /* System header to define __stub macros and hopefully few prototypes,
  3175.     which can conflict with char catgets(); below.  */
  3176. #include <assert.h>
  3177. /* Override any gcc2 internal prototype to avoid an error.  */
  3178. char catgets();
  3179.  
  3180. int main() { return 0; }
  3181. int t() {
  3182.  
  3183. /* The GNU C library defines this for functions which it implements
  3184.     to always fail with ENOSYS.  Some functions are actually named
  3185.     something starting with __ and the normal name is an alias.  */
  3186. #if defined (__stub_catgets) || defined (__stub___catgets)
  3187. choke me
  3188. #else
  3189. catgets();
  3190. #endif
  3191.  
  3192. ; return 0; }
  3193. EOF
  3194. if eval $ac_link; then
  3195.   rm -rf conftest*
  3196.   eval "ac_cv_func_catgets=yes"
  3197. else
  3198.   rm -rf conftest*
  3199.   eval "ac_cv_func_catgets=no"
  3200. fi
  3201. rm -f conftest*
  3202.  
  3203. fi
  3204. if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
  3205.   echo "$ac_t""yes" 1>&6
  3206.   cat >> confdefs.h <<\EOF
  3207. #define HAVE_CATGETS 1
  3208. EOF
  3209.  
  3210.              INTLOBJS="\$(CATOBJS)"
  3211.              # Extract the first word of "gencat", so it can be a program name with args.
  3212. set dummy gencat; ac_word=$2
  3213. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3214. if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
  3215.   echo $ac_n "(cached) $ac_c" 1>&6
  3216. else
  3217.   case "$GENCAT" in
  3218.   /*)
  3219.   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
  3220.   ;;
  3221.   *)
  3222.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3223.   for ac_dir in $PATH; do
  3224.     test -z "$ac_dir" && ac_dir=.
  3225.     if test -f $ac_dir/$ac_word; then
  3226.       ac_cv_path_GENCAT="$ac_dir/$ac_word"
  3227.       break
  3228.     fi
  3229.   done
  3230.   IFS="$ac_save_ifs"
  3231.   test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
  3232.   ;;
  3233. esac
  3234. fi
  3235. GENCAT="$ac_cv_path_GENCAT"
  3236. if test -n "$GENCAT"; then
  3237.   echo "$ac_t""$GENCAT" 1>&6
  3238. else
  3239.   echo "$ac_t""no" 1>&6
  3240. fi
  3241.          if test "$GENCAT" != "no"; then
  3242.            for ac_prog in gmsgfmt msgfmt
  3243. do
  3244. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3245. set dummy $ac_prog; ac_word=$2
  3246. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3247. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3248.   echo $ac_n "(cached) $ac_c" 1>&6
  3249. else
  3250.   case "$GMSGFMT" in
  3251.   /*)
  3252.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3253.   ;;
  3254.   *)
  3255.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3256.   for ac_dir in $PATH; do
  3257.     test -z "$ac_dir" && ac_dir=.
  3258.     if test -f $ac_dir/$ac_word; then
  3259.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3260.       break
  3261.     fi
  3262.   done
  3263.   IFS="$ac_save_ifs"
  3264.   ;;
  3265. esac
  3266. fi
  3267. GMSGFMT="$ac_cv_path_GMSGFMT"
  3268. if test -n "$GMSGFMT"; then
  3269.   echo "$ac_t""$GMSGFMT" 1>&6
  3270. else
  3271.   echo "$ac_t""no" 1>&6
  3272. fi
  3273.  
  3274. test -n "$GMSGFMT" && break
  3275. done
  3276. test -n "$GMSGFMT" || GMSGFMT="msgfmt"
  3277.            # Extract the first word of "xgettext", so it can be a program name with args.
  3278. set dummy xgettext; ac_word=$2
  3279. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3280. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3281.   echo $ac_n "(cached) $ac_c" 1>&6
  3282. else
  3283.   case "$XGETTEXT" in
  3284.   /*)
  3285.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3286.   ;;
  3287.   *)
  3288.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3289.   for ac_dir in $PATH; do
  3290.     test -z "$ac_dir" && ac_dir=.
  3291.     if test -f $ac_dir/$ac_word; then
  3292.       ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3293.       break
  3294.     fi
  3295.   done
  3296.   IFS="$ac_save_ifs"
  3297.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
  3298.   ;;
  3299. esac
  3300. fi
  3301. XGETTEXT="$ac_cv_path_XGETTEXT"
  3302. if test -n "$XGETTEXT"; then
  3303.   echo "$ac_t""$XGETTEXT" 1>&6
  3304. else
  3305.   echo "$ac_t""no" 1>&6
  3306. fi
  3307.    if echo $XGETTEXT | grep openwin > /dev/null; then
  3308.      echo "WARNING: Do not use OpenWin's xgettext.  (Better remove it.) >&6"
  3309.      ac_cv_path_XGETTEXT=xgettext
  3310.      XGETTEXT=xgettext
  3311.    fi
  3312.                CATOBJEXT=.cat
  3313.            INSTOBJEXT=.cat
  3314.            DATADIRNAME=lib
  3315.            INTLDEPS="../intl/libintl.a"
  3316.            INTLLIBS=$INTLDEPS
  3317.            LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  3318.            nls_cv_header_intl=intl/libintl.h
  3319.            nls_cv_header_libgt=intl/libgettext.h
  3320.  
  3321.            # We need to process the intl/ and po/ directory.
  3322.            INTLSUB=intl
  3323.          fi
  3324. else
  3325.   echo "$ac_t""no" 1>&6
  3326. fi
  3327.  
  3328.         fi
  3329.  
  3330.         if test "$CATOBJEXT" = "NONE"; then
  3331.                   nls_cv_use_gnu_gettext=yes
  3332.         fi
  3333.       fi
  3334.  
  3335.       if test "$nls_cv_use_gnu_gettext" = "yes"; then
  3336.                 INTLOBJS="\$(GETTOBJS)"
  3337.         # Extract the first word of "msgfmt", so it can be a program name with args.
  3338. set dummy msgfmt; ac_word=$2
  3339. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3340. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  3341.   echo $ac_n "(cached) $ac_c" 1>&6
  3342. else
  3343.   case "$MSGFMT" in
  3344.   /*)
  3345.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  3346.   ;;
  3347.   *)
  3348.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3349.   for ac_dir in $PATH; do
  3350.     test -z "$ac_dir" && ac_dir=.
  3351.     if test -f $ac_dir/$ac_word; then
  3352.       ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  3353.       break
  3354.     fi
  3355.   done
  3356.   IFS="$ac_save_ifs"
  3357.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
  3358.   ;;
  3359. esac
  3360. fi
  3361. MSGFMT="$ac_cv_path_MSGFMT"
  3362. if test -n "$MSGFMT"; then
  3363.   echo "$ac_t""$MSGFMT" 1>&6
  3364. else
  3365.   echo "$ac_t""no" 1>&6
  3366. fi
  3367.    if echo $MSGFMT | grep openwin > /dev/null; then
  3368.      echo "WARNING: Do not use OpenWin's msgfmt.  (Better remove it.) >&6"
  3369.      ac_cv_path_MSGFMT=msgfmt
  3370.      MSGFMT=msgfmt
  3371.    fi
  3372.         # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3373. set dummy gmsgfmt; ac_word=$2
  3374. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3375. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3376.   echo $ac_n "(cached) $ac_c" 1>&6
  3377. else
  3378.   case "$GMSGFMT" in
  3379.   /*)
  3380.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3381.   ;;
  3382.   *)
  3383.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3384.   for ac_dir in $PATH; do
  3385.     test -z "$ac_dir" && ac_dir=.
  3386.     if test -f $ac_dir/$ac_word; then
  3387.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3388.       break
  3389.     fi
  3390.   done
  3391.   IFS="$ac_save_ifs"
  3392.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3393.   ;;
  3394. esac
  3395. fi
  3396. GMSGFMT="$ac_cv_path_GMSGFMT"
  3397. if test -n "$GMSGFMT"; then
  3398.   echo "$ac_t""$GMSGFMT" 1>&6
  3399. else
  3400.   echo "$ac_t""no" 1>&6
  3401. fi
  3402.    if echo $GMSGFMT | grep openwin > /dev/null; then
  3403.      echo "WARNING: Do not use OpenWin's gmsgfmt.  (Better remove it.) >&6"
  3404.      ac_cv_path_GMSGFMT=gmsgfmt
  3405.      GMSGFMT=gmsgfmt
  3406.    fi
  3407.         # Extract the first word of "xgettext", so it can be a program name with args.
  3408. set dummy xgettext; ac_word=$2
  3409. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3410. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3411.   echo $ac_n "(cached) $ac_c" 1>&6
  3412. else
  3413.   case "$XGETTEXT" in
  3414.   /*)
  3415.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3416.   ;;
  3417.   *)
  3418.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3419.   for ac_dir in $PATH; do
  3420.     test -z "$ac_dir" && ac_dir=.
  3421.     if test -f $ac_dir/$ac_word; then
  3422.       ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3423.       break
  3424.     fi
  3425.   done
  3426.   IFS="$ac_save_ifs"
  3427.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
  3428.   ;;
  3429. esac
  3430. fi
  3431. XGETTEXT="$ac_cv_path_XGETTEXT"
  3432. if test -n "$XGETTEXT"; then
  3433.   echo "$ac_t""$XGETTEXT" 1>&6
  3434. else
  3435.   echo "$ac_t""no" 1>&6
  3436. fi
  3437.    if echo $XGETTEXT | grep openwin > /dev/null; then
  3438.      echo "WARNING: Do not use OpenWin's xgettext.  (Better remove it.) >&6"
  3439.      ac_cv_path_XGETTEXT=xgettext
  3440.      XGETTEXT=xgettext
  3441.    fi
  3442.         
  3443.         CATOBJEXT=.gmo
  3444.         INSTOBJEXT=.mo
  3445.         DATADIRNAME=share
  3446.         INTLDEPS="../intl/libintl.a"
  3447.         INTLLIBS=$INTLDEPS
  3448.     LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  3449.         nls_cv_header_intl=intl/libintl.h
  3450.         nls_cv_header_libgt=intl/libgettext.h
  3451.  
  3452.     # We need to process the intl/ directory.
  3453.     INTLSUB=intl
  3454.       fi
  3455.  
  3456.       # We need to process the po/ directory.
  3457.       POSUB=po
  3458.     else
  3459.       DATADIRNAME=share
  3460.       nls_cv_header_intl=intl/libintl.h
  3461.       nls_cv_header_libgt=intl/libgettext.h
  3462.     fi
  3463.  
  3464.                 for lang in $ALL_LINGUAS; do
  3465.       GMOFILES="$GMOFILES $lang.gmo"
  3466.       POFILES="$POFILES $lang.po"
  3467.     done
  3468.  
  3469.         
  3470.     
  3471.     
  3472.     
  3473.     
  3474.     
  3475.     
  3476.     
  3477.     
  3478.     
  3479.     
  3480.   
  3481.  
  3482.    if test "x$CATOBJEXT" != "x"; then
  3483.      if test "x$ALL_LINGUAS" = "x"; then
  3484.        LINGUAS=
  3485.      else
  3486.        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
  3487.        NEW_LINGUAS=
  3488.        for lang in ${LINGUAS=$ALL_LINGUAS}; do
  3489.          case "$ALL_LINGUAS" in
  3490.           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
  3491.          esac
  3492.        done
  3493.        LINGUAS=$NEW_LINGUAS
  3494.        echo "$ac_t""$LINGUAS" 1>&6
  3495.      fi
  3496.  
  3497.           if test -n "$LINGUAS"; then
  3498.        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  3499.      fi
  3500.    fi
  3501.  
  3502.             test -d intl || mkdir intl
  3503.    if test "$CATOBJEXT" = ".cat"; then
  3504.      ac_safe=`echo "linux/version.h" | tr './\055' '___'`
  3505. echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
  3506. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3507.   echo $ac_n "(cached) $ac_c" 1>&6
  3508. else
  3509.   cat > conftest.$ac_ext <<EOF
  3510. #line 3511 "configure"
  3511. #include "confdefs.h"
  3512. #include <linux/version.h>
  3513. EOF
  3514. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3515. ac_err=`grep -v '^ *+' conftest.out`
  3516. if test -z "$ac_err"; then
  3517.   rm -rf conftest*
  3518.   eval "ac_cv_header_$ac_safe=yes"
  3519. else
  3520.   echo "$ac_err" >&5
  3521.   rm -rf conftest*
  3522.   eval "ac_cv_header_$ac_safe=no"
  3523. fi
  3524. rm -f conftest*
  3525. fi
  3526. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3527.   echo "$ac_t""yes" 1>&6
  3528.   msgformat=linux
  3529. else
  3530.   echo "$ac_t""no" 1>&6
  3531. msgformat=xopen
  3532. fi
  3533.  
  3534.  
  3535.                sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
  3536.    fi
  3537.       sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
  3538.      $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
  3539.  
  3540.          test -d po || mkdir po
  3541.    if test "x$srcdir" != "x."; then
  3542.      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  3543.        posrcprefix="$srcdir/"
  3544.      else
  3545.        posrcprefix="../$srcdir/"
  3546.      fi
  3547.    else
  3548.      posrcprefix="../"
  3549.    fi
  3550.    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,    $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  3551.     < $srcdir/po/POTFILES.in > po/POTFILES
  3552.   
  3553. echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
  3554. # Check whether --with-dmalloc or --without-dmalloc was given.
  3555. if test "${with_dmalloc+set}" = set; then
  3556.   withval="$with_dmalloc"
  3557.   if test "$withval" = yes; then
  3558.   echo "$ac_t""yes" 1>&6
  3559.   cat >> confdefs.h <<\EOF
  3560. #define WITH_DMALLOC 1
  3561. EOF
  3562.  
  3563.   LIBS="$LIBS -ldmalloc"
  3564.   LDFLAGS="$LDFLAGS -g"
  3565. else
  3566.   echo "$ac_t""no" 1>&6
  3567. fi
  3568. else
  3569.   echo "$ac_t""no" 1>&6
  3570. fi
  3571.  
  3572.  
  3573. # sharutils is somewhat special about internationalization in that it
  3574. # always requires the GNU .mo files installed.
  3575. if test "x$CATOBJEXT" = "x.mo" || test "x$CATOBJEXT" = "x.cat"; then
  3576.   new_CATALOGS=""
  3577.   for cat in $CATALOGS; do
  3578.     lang=`echo $cat | sed "s/\(.*\)\..*/\1/"`
  3579.     new_CATALOGS="$new_CATALOGS $cat $lang.gmo"
  3580.   done
  3581.   CATALOGS="$new_CATALOGS"
  3582. fi
  3583.  
  3584.  
  3585.  
  3586. trap '' 1 2 15
  3587. cat > confcache <<\EOF
  3588. # This file is a shell script that caches the results of configure
  3589. # tests run on this system so they can be shared between configure
  3590. # scripts and configure runs.  It is not useful on other systems.
  3591. # If it contains results you don't want to keep, you may remove or edit it.
  3592. #
  3593. # By default, configure uses ./config.cache as the cache file,
  3594. # creating it if it does not exist already.  You can give configure
  3595. # the --cache-file=FILE option to use a different cache file; that is
  3596. # what configure does when it calls configure scripts in
  3597. # subdirectories, so they share the cache.
  3598. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3599. # config.status only pays attention to the cache file if you give it the
  3600. # --recheck option to rerun configure.
  3601. #
  3602. EOF
  3603. # Ultrix sh set writes to stderr and can't be redirected directly,
  3604. # and sets the high bit in the cache file unless we assign to the vars.
  3605. (set) 2>&1 |
  3606.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  3607.   >> confcache
  3608. if cmp -s $cache_file confcache; then
  3609.   :
  3610. else
  3611.   if test -w $cache_file; then
  3612.     echo "updating cache $cache_file"
  3613.     cat confcache > $cache_file
  3614.   else
  3615.     echo "not updating unwritable cache $cache_file"
  3616.   fi
  3617. fi
  3618. rm -f confcache
  3619.  
  3620. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3621.  
  3622. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3623. # Let make expand exec_prefix.
  3624. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3625.  
  3626. # Any assignment to VPATH causes Sun make to only execute
  3627. # the first set of double-colon rules, so remove it if not needed.
  3628. # If there is a colon in the path, we need to keep it.
  3629. if test "x$srcdir" = x.; then
  3630.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  3631. fi
  3632.  
  3633. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3634.  
  3635. DEFS=-DHAVE_CONFIG_H
  3636.  
  3637. # Without the "./", some shells look in PATH for config.status.
  3638. : ${CONFIG_STATUS=./config.status}
  3639.  
  3640. echo creating $CONFIG_STATUS
  3641. rm -f $CONFIG_STATUS
  3642. cat > $CONFIG_STATUS <<EOF
  3643. #! /bin/sh
  3644. # Generated automatically by configure.
  3645. # Run this file to recreate the current configuration.
  3646. # This directory was configured as follows,
  3647. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3648. #
  3649. # $0 $ac_configure_args
  3650. #
  3651. # Compiler output produced by configure, useful for debugging
  3652. # configure, is in ./config.log if it exists.
  3653.  
  3654. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3655. for ac_option
  3656. do
  3657.   case "\$ac_option" in
  3658.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3659.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3660.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3661.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3662.     echo "$CONFIG_STATUS generated by autoconf version 2.7"
  3663.     exit 0 ;;
  3664.   -help | --help | --hel | --he | --h)
  3665.     echo "\$ac_cs_usage"; exit 0 ;;
  3666.   *) echo "\$ac_cs_usage"; exit 1 ;;
  3667.   esac
  3668. done
  3669.  
  3670. ac_given_srcdir=$srcdir
  3671. ac_given_INSTALL="$INSTALL"
  3672.  
  3673. trap 'rm -fr `echo "Makefile src/mail-files src/mailshar src/remsync contrib/Makefile \
  3674.        lib/Makefile intl/Makefile intl/po2tbl.sed src/Makefile \
  3675.        po/Makefile.in doc/Makefile checks/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3676. EOF
  3677. cat >> $CONFIG_STATUS <<EOF
  3678.  
  3679. # Protect against being on the right side of a sed subst in config.status.
  3680. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3681.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3682. $ac_vpsub
  3683. $extrasub
  3684. s%@CFLAGS@%$CFLAGS%g
  3685. s%@CPPFLAGS@%$CPPFLAGS%g
  3686. s%@CXXFLAGS@%$CXXFLAGS%g
  3687. s%@DEFS@%$DEFS%g
  3688. s%@LDFLAGS@%$LDFLAGS%g
  3689. s%@LIBS@%$LIBS%g
  3690. s%@exec_prefix@%$exec_prefix%g
  3691. s%@prefix@%$prefix%g
  3692. s%@program_transform_name@%$program_transform_name%g
  3693. s%@bindir@%$bindir%g
  3694. s%@sbindir@%$sbindir%g
  3695. s%@libexecdir@%$libexecdir%g
  3696. s%@datadir@%$datadir%g
  3697. s%@sysconfdir@%$sysconfdir%g
  3698. s%@sharedstatedir@%$sharedstatedir%g
  3699. s%@localstatedir@%$localstatedir%g
  3700. s%@libdir@%$libdir%g
  3701. s%@includedir@%$includedir%g
  3702. s%@oldincludedir@%$oldincludedir%g
  3703. s%@infodir@%$infodir%g
  3704. s%@mandir@%$mandir%g
  3705. s%@PACKAGE@%$PACKAGE%g
  3706. s%@VERSION@%$VERSION%g
  3707. s%@PROGRAMS@%$PROGRAMS%g
  3708. s%@SCRIPTS@%$SCRIPTS%g
  3709. s%@MAN1PAGES@%$MAN1PAGES%g
  3710. s%@MAN5PAGES@%$MAN5PAGES%g
  3711. s%@DIST_ALPHA@%$DIST_ALPHA%g
  3712. s%@CC@%$CC%g
  3713. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3714. s%@INSTALL_DATA@%$INSTALL_DATA%g
  3715. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  3716. s%@SET_MAKE@%$SET_MAKE%g
  3717. s%@RANLIB@%$RANLIB%g
  3718. s%@DIFF@%$DIFF%g
  3719. s%@MAILER@%$MAILER%g
  3720. s%@PERL@%$PERL%g
  3721. s%@SH@%$SH%g
  3722. s%@TAR@%$TAR%g
  3723. s%@CPP@%$CPP%g
  3724. s%@U@%$U%g
  3725. s%@ANSI2KNR@%$ANSI2KNR%g
  3726. s%@ALLOCA@%$ALLOCA%g
  3727. s%@LIBOBJS@%$LIBOBJS%g
  3728. s%@MSGFMT@%$MSGFMT%g
  3729. s%@GMSGFMT@%$GMSGFMT%g
  3730. s%@XGETTEXT@%$XGETTEXT%g
  3731. s%@GENCAT@%$GENCAT%g
  3732. s%@CATALOGS@%$CATALOGS%g
  3733. s%@CATOBJEXT@%$CATOBJEXT%g
  3734. s%@DATADIRNAME@%$DATADIRNAME%g
  3735. s%@GMOFILES@%$GMOFILES%g
  3736. s%@INSTOBJEXT@%$INSTOBJEXT%g
  3737. s%@INTLDEPS@%$INTLDEPS%g
  3738. s%@INTLLIBS@%$INTLLIBS%g
  3739. s%@INTLOBJS@%$INTLOBJS%g
  3740. s%@INTLSUB@%$INTLSUB%g
  3741. s%@POFILES@%$POFILES%g
  3742. s%@POSUB@%$POSUB%g
  3743.  
  3744. CEOF
  3745. EOF
  3746. cat >> $CONFIG_STATUS <<EOF
  3747.  
  3748. CONFIG_FILES=\${CONFIG_FILES-"Makefile src/mail-files src/mailshar src/remsync contrib/Makefile \
  3749.        lib/Makefile intl/Makefile intl/po2tbl.sed src/Makefile \
  3750.        po/Makefile.in doc/Makefile checks/Makefile"}
  3751. EOF
  3752. cat >> $CONFIG_STATUS <<\EOF
  3753. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3754.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3755.   case "$ac_file" in
  3756.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3757.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3758.   *) ac_file_in="${ac_file}.in" ;;
  3759.   esac
  3760.  
  3761.   # Adjust relative srcdir, etc. for subdirectories.
  3762.  
  3763.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3764.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3765.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3766.     # The file is in a subdirectory.
  3767.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3768.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3769.     # A "../" for each directory in $ac_dir_suffix.
  3770.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3771.   else
  3772.     ac_dir_suffix= ac_dots=
  3773.   fi
  3774.  
  3775.   case "$ac_given_srcdir" in
  3776.   .)  srcdir=.
  3777.       if test -z "$ac_dots"; then top_srcdir=.
  3778.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3779.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3780.   *) # Relative path.
  3781.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3782.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3783.   esac
  3784.  
  3785.   case "$ac_given_INSTALL" in
  3786.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3787.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3788.   esac
  3789.   echo creating "$ac_file"
  3790.   rm -f "$ac_file"
  3791.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3792.   case "$ac_file" in
  3793.   *Makefile*) ac_comsub="1i\\
  3794. # $configure_input" ;;
  3795.   *) ac_comsub= ;;
  3796.   esac
  3797.   sed -e "$ac_comsub
  3798. s%@configure_input@%$configure_input%g
  3799. s%@srcdir@%$srcdir%g
  3800. s%@top_srcdir@%$top_srcdir%g
  3801. s%@INSTALL@%$INSTALL%g
  3802. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  3803. fi; done
  3804. rm -f conftest.subs
  3805.  
  3806. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3807. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3808. #
  3809. # ac_d sets the value in "#define NAME VALUE" lines.
  3810. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3811. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  3812. ac_dC='\3'
  3813. ac_dD='%g'
  3814. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3815. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3816. ac_uB='\([     ]\)%\1#\2define\3'
  3817. ac_uC=' '
  3818. ac_uD='\4%g'
  3819. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3820. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3821. ac_eB='$%\1#\2define\3'
  3822. ac_eC=' '
  3823. ac_eD='%g'
  3824.  
  3825. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  3826. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3827.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3828.   case "$ac_file" in
  3829.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3830.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3831.   *) ac_file_in="${ac_file}.in" ;;
  3832.   esac
  3833.  
  3834.   echo creating $ac_file
  3835.  
  3836.   rm -f conftest.frag conftest.in conftest.out
  3837.   cp $ac_given_srcdir/$ac_file_in conftest.in
  3838.  
  3839. EOF
  3840.  
  3841. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3842. # the proper values into config.h.in to produce config.h.  And first:
  3843. # Protect against being on the right side of a sed subst in config.status.
  3844. # Protect against being in an unquoted here document in config.status.
  3845. rm -f conftest.vals
  3846. cat > conftest.hdr <<\EOF
  3847. s/[\\&%]/\\&/g
  3848. s%[\\$`]%\\&%g
  3849. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3850. s%ac_d%ac_u%gp
  3851. s%ac_u%ac_e%gp
  3852. EOF
  3853. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3854. rm -f conftest.hdr
  3855.  
  3856. # This sed command replaces #undef with comments.  This is necessary, for
  3857. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3858. # on some systems where configure will not decide to define it.
  3859. cat >> conftest.vals <<\EOF
  3860. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3861. EOF
  3862.  
  3863. # Break up conftest.vals because some shells have a limit on
  3864. # the size of here documents, and old seds have small limits too.
  3865. # Maximum number of lines to put in a single here document.
  3866. ac_max_here_lines=12
  3867.  
  3868. rm -f conftest.tail
  3869. while :
  3870. do
  3871.   ac_lines=`grep -c . conftest.vals`
  3872.   # grep -c gives empty output for an empty file on some AIX systems.
  3873.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3874.   # Write a limited-size here document to conftest.frag.
  3875.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  3876.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  3877.   echo 'CEOF
  3878.   sed -f conftest.frag conftest.in > conftest.out
  3879.   rm -f conftest.in
  3880.   mv conftest.out conftest.in
  3881. ' >> $CONFIG_STATUS
  3882.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  3883.   rm -f conftest.vals
  3884.   mv conftest.tail conftest.vals
  3885. done
  3886. rm -f conftest.vals
  3887.  
  3888. cat >> $CONFIG_STATUS <<\EOF
  3889.   rm -f conftest.frag conftest.h
  3890.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3891.   cat conftest.in >> conftest.h
  3892.   rm -f conftest.in
  3893.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  3894.     echo "$ac_file is unchanged"
  3895.     rm -f conftest.h
  3896.   else
  3897.     rm -f $ac_file
  3898.     mv conftest.h $ac_file
  3899.   fi
  3900. fi; done
  3901.  
  3902. EOF
  3903.  
  3904. cat >> $CONFIG_STATUS <<EOF
  3905. ac_sources="$nls_cv_header_libgt"
  3906. ac_dests="$nls_cv_header_intl"
  3907. EOF
  3908.  
  3909. cat >> $CONFIG_STATUS <<\EOF
  3910. srcdir=$ac_given_srcdir
  3911. while test -n "$ac_sources"; do
  3912.   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  3913.   set $ac_sources; ac_source=$1; shift; ac_sources=$*
  3914.  
  3915.   echo "linking $srcdir/$ac_source to $ac_dest"
  3916.  
  3917.   if test ! -r $srcdir/$ac_source; then
  3918.     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  3919.   fi
  3920.   rm -f $ac_dest
  3921.  
  3922.   # Make relative symlinks.
  3923.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3924.   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  3925.   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  3926.     # The dest file is in a subdirectory.
  3927.     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
  3928.     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
  3929.     # A "../" for each directory in $ac_dest_dir_suffix.
  3930.     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  3931.   else
  3932.     ac_dest_dir_suffix= ac_dots=
  3933.   fi
  3934.  
  3935.   case "$srcdir" in
  3936.   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  3937.   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  3938.   esac
  3939.  
  3940.   # Make a symlink if possible; otherwise try a hard link.
  3941.   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  3942.     ln $srcdir/$ac_source $ac_dest; then :
  3943.   else
  3944.     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  3945.   fi
  3946. done
  3947.  
  3948. sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile; \
  3949.  test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  3950. exit 0
  3951. EOF
  3952. chmod +x $CONFIG_STATUS
  3953. rm -fr confdefs* $ac_clean_files
  3954. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  3955.  
  3956.